Advertisement
TakePen

Untitled

May 12th, 2023
1,944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.12 KB | None | 0 0
  1. $bRunning = True
  2.                     GUICtrlSetData($StartButton, "Initializing...")
  3.                     GUICtrlSetState($StartButton, $GUI_DISABLE)
  4.                     GUICtrlSetState($CharInput, $GUI_DISABLE)
  5.                     GUICtrlSetState($RenderingBox, $GUI_ENABLE)
  6.                     ;WinSetTitle($GUI, "", "DoA Gems Bot " & $Version & " - " & GUICtrlRead($CharInput))
  7.                     TraySetToolTip(GUICtrlRead($CharInput))
  8.                     If GUICtrlRead($CharInput) = "" Then
  9.                         $gwInstanceHandle = Initialize(ProcessExists("gw.exe"), True, True, False)
  10.                             If $gwInstanceHandle = False Then
  11.                                 MsgBox(0, "Error", "Guild Wars it not running.")
  12.                                 Exit
  13.                             EndIf
  14.                     Else
  15.                         $gwInstanceHandle = Initialize(GUICtrlRead($CharInput), True, True, False)
  16.                         If $gwInstanceHandle = False Then
  17.                             MsgBox(0, "Error", "Can't find a Guild Wars client with that character name.")
  18.                             Exit
  19.                         EndIf
  20.                 EndIf
  21.                     GUICtrlSetData($StartButton, "Pause")
  22.                     GUICtrlSetState($StartButton, $GUI_ENABLE)
  23.                     WinSetTitle($GUI, "", GetCharname() & " - " & $botname & " " & $Version)
  24.                     $bInitialized = True
  25.                     AdlibRegister('CheckGuildWars', 1000)
  26.                 EndIf
  27.             Case $RenderingBox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement