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.

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 stackoverflow.com Mar 10 '10 at 0:12

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

2 Answers 2

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.

Alt::
KeyWait, Alt
KeyWait, Alt, D, T0.12
If ErrorLevel = 1
    Return
Else
    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

Your Answer

 
discard

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