AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hotkeys in fullscreen games

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
hkdnz



Joined: 22 Feb 2009
Posts: 1

PostPosted: Sun Feb 22, 2009 7:35 pm    Post subject: Hotkeys in fullscreen games Reply with quote

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
View user's profile Send private message
firace



Joined: 08 Feb 2009
Posts: 28

PostPosted: Sun Feb 22, 2009 10:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Sun Oct 09, 2011 11:09 pm    Post subject: Reply with quote

Dont know if that works... try it


volume_mute::tskill bf2142pace.exe
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group