Kondicykel Posted April 18, 2014 Share Posted April 18, 2014 Hello guys. Im trying a new function that i never tryit before... i made it work but suddently after 5-10min it closes down with no errors.. ive been looking for somekinda error reporting.. but cant seem to figure it out.. And now im here.. It seems a little slow is there a way i can speed things up the faster it react on the pixels the better?? It may be a little messy... this is only my 4. script.. I appreciate all the help i can get Here's the script.. Have a good day expandcollapse popupGlobal $Paused HotKeySet("=","Leave") ;script can START by pressing = HotKeySet("-", "Pause") ;script can be Pause by pressing - HotKeySet("<", "Stop") ;script can be Stopped by pressing x $go = True $Run = False $RunMade = 0 $Forcerun = 0 #include <Misc.au3> $dll = DllOpen("user32.dll") While $go if($Run) Then Sleep (20) Force() If _IsPressed("10", $dll) Then $ForceRun = 1 sleep(20) $Pixel1 = PixelSearch( 1276,885,1345,961,0x351A35,80) ;MANA If Not @error Then sleep(20) $Pixel1 = PixelSearch( 766,35,972,77,0x7b140E,10) ;MONSTER RØDT LIV If Not @error Then send ("{2 down}") Sleep (350) send ("{2 up}") Endif Endif Endif EndIf WEnd Func Force() If $ForceRun = 1 Then If _IsPressed("01", $dll) Then If _IsPressed("10", $dll) = false Then send("w") $ForceRun = 0 EndIf EndIf EndIf Endfunc Func Pause() $Run = False EndFunc Func Stop() DllClose($dll) ;to allow the script to stop Exit EndFunc Func Leave() $Run = True EndFunc Link to comment Share on other sites More sharing options...
Developers Jos Posted April 18, 2014 Developers Share Posted April 18, 2014 (edited) Removed the double posted thread and like to point you to our forum rules. Jos Edited April 18, 2014 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kondicykel Posted April 18, 2014 Author Share Posted April 18, 2014 (edited) First of all.. i did not double post? not on purpose though... second.. i have to follow/read the rules? i did just read them and where do it say i cant post my script? where do i break the rules? sorry sir.. im guilty in trying to learn autoit i guess you know what topic im talking about.. i wont link it since i guess u would get anoyed and say i dont follow rules again well Have a good day sir... Edited April 18, 2014 by Kondicykel Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 18, 2014 Moderators Share Posted April 18, 2014 Kondicykel, i did not double post? not on purpose thoughYou did double post - I can see the deleted one. But this happens from time to time by accident and we do not get too excited by it. I think I hold the record when the forum was misbehaving a few years ago when I managed to post the same thing 5 times. i did just read them and where do it say i cant post my script? where do i break the rules?But looking at your script, I see "MANA & MONSTER RØDT LIV" - to me, and I assume Jos, that says "GAMEBOT" in big bright letters! And if you read the rules to which you were linked you will see that game threads are prohibited. Hence your thread was locked. All clear now? 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 Link to comment Share on other sites More sharing options...
Kondicykel Posted April 18, 2014 Author Share Posted April 18, 2014 You did double post - I can see the deleted one. But this happens from time to time by accident and we do not get too excited by it. I think I hold the record when the forum was misbehaving a few years ago when I managed to post the same thing 5 times. That is odd.. cuzz i didnt delete any post.. But looking at your script, I see "MANA & MONSTER RØDT LIV" - to me, and I assume Jos, that says "GAMEBOT" in big bright letters! And if you read the rules to which you were linked you will see that game threads are prohibited. Hence your thread was locked Yeah well i copied alot of it from 2 other scripts... and modified it .. thats why u see its in danish and english and its totaly messed up But i can see it from your point of view This is not ment to be a gamebot. but a learning experience.. Since u cant help me i will go somehere else.. Thx for your patience Link to comment Share on other sites More sharing options...
Moderators Solution Melba23 Posted April 18, 2014 Moderators Solution Share Posted April 18, 2014 (edited) Kondicykel, i didnt delete any postNo, we did it for you. This is not ment to be a gamebot. but a learning experienceFine, but learn in another way that by botting games. Since u cant help me i will go somehere elseNo need - just stick to the rules and you will get a lot of help here. I have now unlocked the thread for a while just in case you want to reply again - saves me having to merge each time. M23Edit: Relocked. Edited April 18, 2014 by Melba23 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 Link to comment Share on other sites More sharing options...
Recommended Posts