is there a way to execute a command in command prompt by pressing one or more keys?
i wanna bind a %comspec% /c taskkill /im to two keys for quickly shutting down a game that otherwise freezes and crashes if i close it normally
>>178101
Easiest way is probably to just make a bat file with the taskkill command, create a shortcut on your desktop, then go into properties for that shortcut, go to the shortcut tab, and set a shortcut key.
>>178101
https://autohotkey.com/
>comspec
Nice to see an oldfag.
>>178105
thanks, it says the command was successfully sent to the process but the process isn't closing though. It's not reacting at all.
>>178138
You can close the process if you type the taskkill command line by hand, but not if you run it from a batch file?
>>178141
No, the process is not reacting in this case either. I'm using it on Garry's Mod, which has the process hl2.exe.