• Bind function keys to a BAT file in Vista?
    4 replies, posted
(I don't think this would go in "programming" since I'm not coding a program. If it's in the wrong section, admins, would you kindly move it?) Is there any way I could bind F8 to run a bat file? The only complication that may arise is that I have Vista 32, if that is an issue.
Auto Hotkey? That's the best I can think of... [url=http://www.autohotkey.com/]Details[/url]
Autohotkey will do what you want. Also, here's a cool trick I learned: If you want to run BAT files silently (without popping up a cmd window), make a file in your favorite text editor with the contents [code]Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & "C:\LOCATION OF FILE\FILE.BAT" & Chr(34), 0 Set WshShell = Nothing[/code] and save it as a *.vbs file. Running that file will silently run your BAT.
Create a link on your desktop connecting to the bat file, in the properties of the shortcut assign a shortcut key.
[QUOTE=Agent_Wesker;21228870]Create a link on your desktop connecting to the bat file, in the properties of the shortcut assign a shortcut key.[/QUOTE] Holy shit, has that always been Windows feature? I never noticed it. But then you need to add another shortcut to your desktop. I checked and it doesn't work if the shortcut is somewhere else on your computer, and it doesn't work for F8 - only for Ctrl+Alt+Something shortcuts.
Sorry, you need to Log In to post a reply to this thread.