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

Well, I'm wondering is there's any way to link a single key on my keyboard to a file. I wish to execute the file upon pressing the key. I tried using the built in shortcut hotkey system and it didn't work out for me. It really needs to be one single key.

share|improve this question

migrated from Mar 10 '10 at 0:12

This question came from our site for professional and enthusiast programmers.

Autohotkey may do the job - I used it to trigger an action upon "double-pressing" the "alt" key (ahk script below). I'm pretty sure you can trigger an action by pressing a key only once also, but might be difficult to find an otherwise unused key for that.

KeyWait, Alt
KeyWait, Alt, D, T0.12
If ErrorLevel = 1
    Run, c:\example.exe -aparameter
share|improve this answer

What is possible is enable sticky keys and thus eliminating the need of pressing multiple buttons at once.

Hope that helps.

share|improve this answer
It's an interesting idea for sure, however the application won't run using Microsoft's built in shortcut thingy, at least not for the key I wish to use. – Mister X Mar 8 '10 at 14:28

You must log in to answer this question.