Jump to content

Recommended Posts

Posted

1. I got somewhere an error in my script, cause terminate doesn't work, why ?

2. And can i ask someone to explain me how to obtain the screen coordinates, so i can use them in the script, youtube and google didn't help at all :graduated:

3. Is there any software to check my scripts for errors ?

#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 teh 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
  • Moderators
Posted

IspanikaS,

Welcome to the AutoIt forum. :graduated:

Hellgate Bot

You appear to have missed reading the Forum Rules on your way in. Perhaps you could do so now and then you will understand why you will get no help here for your script. ;)

As to error-checking, I suggest you download the full SciTE4AutoIt3 package - it contains a number of utilities to do that, such as Tidy and Au3Check. ;)

I look forward to helping with your next (legitimate) question. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...