Reputation: 101
The situation is: I'm using a combination of Teamspeak [shared communication], ARMA 2 with ACRE extension [Gaming software w/ extended "radio" capabilities] and DXTory [video and audio splitting/recording software].
The problem is: DXTory records audio when a single hotkey is pressed. ACRE uses a set of hotkeys to allow switching between different radios. I end up losing audio from "push-to-talk" keys that aren't monitored by DXTory.
What I'd like: I'm thinking that autohotkey should allow me to take a "numpad-key-1" press and produce a "numpad-key-1" + "G3" (G3 being unused by ARMA/ACRE, but being used as the "push-to-talk" for DXTory and "numpad-key-1" being the push-to-talk for ARMA/ACRE). Similarly, I'd map "numpad-key-2" to "numpad-key-2" + "G3" and "numpad-key-3" to "numpad-key-3" + "G3".
The G3 key would need to be key-down as the corresponding "numpad-key" is pressed and released with the key-up event.
Can this be done? If so, any hints on how?
Thanks!
Upvotes: 0
Views: 1002
Reputation: 2682
This is achieved quite simply. Repeat the code for in your script changing only the Numpad0-9 and possibly your "G3" key, I don't have one of those on my keyboard.
Numpad0:: ;Declare your hotkey
While GetKeyState("Numpad0") ;Check key state
{
SendInput {G3 Down} ;Set G3 as pressed
}
SendInput {G3 Up} ;Set G3 as released
return ;Return from function
Upvotes: 1