Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.