Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.60 KB | None | 0 0
  1. Func Logon()
  2.     If WinExists("Blizzard Battle.net") Then
  3.         $bnet = WinGetHandle("[CLASS:Qt5QWindowOwnDCIcon]")
  4.         If @error Then
  5.             MsgBox($MB_SYSTEMMODAL, "", "An error occurred when trying to retrieve the battle.net window handle.")
  6.             Exit
  7.         EndIf
  8.         WinSetState($bnet, "", @SW_SHOW)
  9.         WinActivate($bnet)
  10.         Sleep(200)
  11.         ;coordinates of battle.net play button
  12.         MouseClick("left", -1536, 1012)
  13.         Sleep(16000)
  14.     Else
  15.         MsgBox($MB_SYSTEMMODAL, "", "An error occurred when trying to retrieve the battle.net handle.")
  16.     EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement