Mu Auto Hotkey Isnt Working now T_T

My Script is this:
[code:1]
WinGet, wowid, List, World of Warcraft

~2::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, 2, ahk_id %wowid1%
ControlSend,, 2, ahk_id %wowid2%
Return
} [/code:1]

But when i press 2 it does nothing