Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It's not uncommon for me to have to run a command line program that gives me a unique code (kind of like an RSA SecurID token, but entirely software), and then paste that code into a web page or ssh session.

This is tedious.

So is there a program out there that I can assign a hotkey to run this command and simulate typing the result wherever the cursor is?

Bonus points for programs that...

  • Entirely hide the console window so I never see it
  • Allow me to define "normal" and "abnormal" results (via regex?) and will show a little popup for abnormal ones
  • Are free

Edit: I'm on Windows 7

share|improve this question

Just and idea... What about automatically piping the output of your program to another program which would place it in the OS clipboard? Then you can just CTRL-V where you need it. This is discussed here: How to pipe text from command line to the clipboard

share|improve this answer
That's assuming he's not using Linux or Windows XP and earlier – Split71 Jan 5 '12 at 20:14
That's not very helpful for SSH sessions where I'd still have to grab the mouse (Ctrl+V is piped through to the host). – Hounshell Jan 5 '12 at 20:14
Windows 7, thankfully. – Hounshell Jan 5 '12 at 20:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .