I am just leraning how to make scripts. I wanted to use scripts for my 2 wow accounts. I have tried very basic script for just 1 button " 0 ".

First i did this to test software on notepad;

WinGet, wowid, List, Notepad

~0::
KeyWait, 0, D
#IfWinActive, Notepad
{
ControlSend,, 0, ahk_id %wowid1%
ControlSend,, 0, ahk_id %wowid2%
}
Return

What i see was amazing, i see when i type 0 it appears on the other window as well.

Then i decided to try it on wow. I used this 1;


WinGet, wowid, List, World of Warcraft

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

But nothing happens? Why ? I don't get it, it is working on notepad but it is not working on warcraft. Is there any problem about programs running under vista? Or what is my problem please help me to find it out.