Global Const $path = "C:\World of Warcraft\Wow.exe"
Global Const $proc = "Wow.exe"
Global Const $win = "World of Warcraft"
Global Const $acc = "account"
Global Const $pass = "pass"
Global $pid
Run($path)
If @error Then
Msgbox(0,"Error","Process failed to run.")
EndIf
$pid = ProcessExists($proc)
If @error Then
Msgbox(0,"Error","Can't find client.")
EndIf
Do
If Not WinActive($win) Then
WinActivate($win)
EndIf
Until WinActive($win)
;Sleep time is arbitrary.
Sleep(10000)
Send($acc)
Send("{TAB}")
Send($pass)
MouseClick("primary",636,572,1,1)
Seems Controlclick doesn't work but maybe I did my syntax wrong, this works on my system as far as I could tell, my account isn't active tho
This could be shortened down.
You can edit the config.wtf file in the wow folder to automatically enter your account name and password, just as a by the way.