AHK macro wrote:
WinGet, wowid, List, World of Warcraft
~w::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, w, ahk_id %wowid1%
ControlSend,, w, ahk_id %wowid2%
Return
}
~w::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, w, ahk_id %wowid1%
ControlSend,, w, ahk_id %wowid2%
Return
}
This will send a 'w' to both of the WoW windows I have open. The trouble I'm having it that this will send the keypress to the current window and to both WoW windows. In most cases this is simply an annoyance. If I'm writing something in the chat box, all my 'w's are doubled, and I have to backspace over them. But in some instances, it adversely affects gameplay. If I have my wand bound to 4, a '4' keypress will activate the wand for both windows, but will automatically de-activate it again for the current one.
Can anyone tell me how to modify the macros so this doesn't happen?