| View previous topic :: View next topic |
| Author |
Message |
hkdnz
Joined: 22 Feb 2009 Posts: 1
|
Posted: Sun Feb 22, 2009 7:35 pm Post subject: Hotkeys in fullscreen games |
|
|
Ideally, I'd like something like this:
volume_mute::kill_process bf2142.exe
So far, to make things simple, I just have: volume_mute::run Notepad
In Windows, pressing volume_mute runs notepad. A-OK.
When ingame (Battlefield 2142, fullscreen), pressing volume_mute actually mutes the sound.
Any ideas?
I'm not too worried about the "kill_process bf2142.exe" bit -- I'm sure I could whip up an exe in some other language to do that. It's the registering of volume_mute in BF2142 that's troubling me.
If ya'll have a more elegant solution to killing the game via hotkey (without using AHK) I'd be more than open to suggestions.
Many thanks,
-hk |
|
| Back to top |
|
 |
firace
Joined: 08 Feb 2009 Posts: 28
|
Posted: Sun Feb 22, 2009 10:17 pm Post subject: |
|
|
try adding the below commands at the top of your script
#InstallKeybdHook
SetKeyDelay 20, 20
does that help?
you can also search the forum for bf2 macros to get more ideas |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Oct 09, 2011 11:09 pm Post subject: |
|
|
Dont know if that works... try it
volume_mute::tskill bf2142pace.exe |
|
| Back to top |
|
 |
|