Hello everyone,
this is my first time here on the boards, and the very first time using AutoIT (I was using AutoHotKey before).
I can say, that right now I really like AutoIT and the possibilities, but I have ran into a problem.
$var = 1
While $var = 1
Sleep (5000)
$PID = ProcessExists("WoW.exe")
If $PID Then ControlSend("World of Warcraft", "", "GxWindowClassD3d", "2",1)
WEnd
This SHOULD send the key "2" into the World of Warcraft window, even if it ain't the highlighted window (means; not being the active window).
Can anyone see what I'm doing wrong? It worked perfectly when I wrote it like this:
$var = 1
While $var = 1
Sleep (5000)
$PID = ProcessExists("WoW.exe")
If $PID Then Send("2")
WEnd
But then it HAS to be active - And that's hard when I want it to run in the background while in school.
Ty in advance :-)