Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Func Logon()
- If WinExists("Blizzard Battle.net") Then
- $bnet = WinGetHandle("[CLASS:Qt5QWindowOwnDCIcon]")
- If @error Then
- MsgBox($MB_SYSTEMMODAL, "", "An error occurred when trying to retrieve the battle.net window handle.")
- Exit
- EndIf
- WinSetState($bnet, "", @SW_SHOW)
- WinActivate($bnet)
- Sleep(200)
- ;coordinates of battle.net play button
- MouseClick("left", -1536, 1012)
- Sleep(16000)
- Else
- MsgBox($MB_SYSTEMMODAL, "", "An error occurred when trying to retrieve the battle.net handle.")
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement