SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top