IspanikaS Posted September 25, 2011 Posted September 25, 2011 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 3. Is there any software to check my scripts for errors ? expandcollapse popup#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 Melba23 Posted September 25, 2011 Moderators Posted September 25, 2011 IspanikaS,Welcome to the AutoIt forum. Hellgate BotYou 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts