i am trying to send keystorkes to two open WoWs. I am doing the whole step process provided in the AHK help file:

1-open windows explorer
2-create a new AHK script
3-enter script on first blank line(using the exaple provided in the AHK post in the software forums for the number 2 key)-listed at bottom of post
4- save and close
5-open and use

however the keystrokes are not entering both aplications of wow, is there something wrong with the script or what i am doing to set this all up, any help would be greatly apriciated. thanks.


WinGet, wowid, List, World of Warcraft

~2::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, 2, ahk_id %wowid1%
ControlSend,, 2, ahk_id %wowid2%
Return
}