I'd like to run a certain batch when I hit some given combination of keys.
It's as simple as, when I hit, say, CTRL+D, I want to execute the command C:\scripts\run.
Is there any way to do this, perhaps with some third party software?
|
I'd like to run a certain batch when I hit some given combination of keys. It's as simple as, when I hit, say, CTRL+D, I want to execute the command C:\scripts\run. Is there any way to do this, perhaps with some third party software? |
||||
|
|
|
You want http://www.autohotkey.com It has the ability to map arbitrary keystrokes to files or programs. Lots of examples, including ones very similar to what you're trying to do, in their quick start tutorial: http://www.autohotkey.com/docs/Tutorial.htm |
||||
|
To expand on @ckhan's answer, You can write an AutoHotkey script that uses hotkeys and the Run command. For example,
will launch If you don't want to use third party software, Windows offers a similar solution with shortcut (
Note:For either method, if you want to use commands without first creating a batch file, I recommend using the
to run the command |
||||
|
|