one thing i noticed when using AHK is make sure you load it after your clients have loaded up.
make sure you have this up the top of your .ahk
Code:
SendMode Input
SetWorkingDir %A_ScriptDir%  
WinGet, wowid, List, World of Warcraft
and your scripts should be like this
Code:
~1::
KeyWait 1
IfWinActive, World of Warcraft
{
ControlSend,, 1, ahk_id %wowid2%
Return
}
You dont really need to controlsend to wowid1 because you are playing wowid1