I wanna say first i hate AutoIt and i have no idea why i decided to use it after all :D
Need help with making the bot:
1. How to get my coordinates (the ones of reset button, and the ones of OK button);
2. Something wrong with terminate;
3. Any ideas how to make the "targeting" a lil better ?
--- And i'm nub at using AutoIt, so dotn be harsh ---
Code
#ce ----------------------------------------------------------------------------
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region
$Form1 = GuiCreate("Hellgate Bot",268,257,637,331)
$Form1 = GUISetBkColor(0xb83f5d)
$Form1 = GUICtrlSetFont(-1, 12, 800, 0, "Comic Sans Ms")
$Form1 = GuiSetState()
$Button1 = GUICtrlCreateButton("GO GO", 20, 40, 190, 50, 0)
$Button2 = GUICtrlCreateButton("STOP > ESC", 20, 140, 190, 50, 0)
GUISetState(@SW_SHOW)
#EndRegion
HotKeySet("{ESC}", "Terminate")
Func _move($loop,$key)
For $i = $loop to 1 Step -1
ControlSend("Hellgate (x86 DX9)", "", "", $key)
Next
EndFunc
Func Terminate()
Exit 0
EndFunc
While 1
$nMsg = GUIGetMsg()
Select
Case $Button1
While 1
Sleep(2000)
_move(120,"s")
Sleep(5)
_move(25,"w")
Sleep(5); Getting IN
_move(25,"s")
Sleep(3000); INSIDE FROM NOW ON, increase the second W MOVE to get deeper
_move(50,"w")
Sleep(5)
_move(40,"a")
_move(150,"w")
Sleep(10)
_move(25,"a")
ControlSend("Hellgate (x86 DX9)", "", "", "{Y}"); AOE
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(1000)
ControlSend("Hellgate (x86 DX9)", "", "", "{y}"); AOE
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{q}"); HP injector
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(100)
Sleep(2350)
ControlSend("Hellgate (x86 DX9)", "", "", "{7}"); Unstuck macro activated by key 7
Sleep(15000)
_move(80,"s"); Start to walk to get out of there
Sleep(5)
_move(18,"w")
Sleep(5)
_move(18,"s")
Sleep(4000)
Send("{ALTDOWN}"); RESET
Sleep(500)
MouseClick("left","X","Y",1)
Sleep(500)
MouseClick("left","X","Y",1)
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{ENTER}")
Sleep(10)
MouseClick("left","X","Y",1)
Sleep(500)
MouseClick("left","X","Y",1)
Sleep(300)
MouseClick("left","X","Y",1)
Sleep(300)
MouseClick("left","X","Y",1)
Sleep(300)
Send("{ALTUP}")
Sleep(250)
WEnd
Case $Button2
GUIDelete()
ExitLoop
EndSelect
wend