Codenameglassy Posted March 15, 2019 Share Posted March 15, 2019 Hello i want to create a bot that pixel searches and wait until it finds that color... Every time i start my bot it ends automatically or when i add sleep,, it clicks either early or late Link to comment Share on other sites More sharing options...
Codenameglassy Posted March 15, 2019 Author Share Posted March 15, 2019 Hello i want to create a bot that pixel searches and wait until it finds that color... Every time i start my bot it ends automatically or when i add sleep,, it clicks either early or late Link to comment Share on other sites More sharing options...
Codenameglassy Posted March 15, 2019 Author Share Posted March 15, 2019 Hello i want to create a bot that pixel searches and wait until it finds that color... Every time i start my bot it ends automatically or when i add sleep,, it clicks either early or late Link to comment Share on other sites More sharing options...
careca Posted March 15, 2019 Share Posted March 15, 2019 so... what did you try for yourself? Codenameglassy 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 15, 2019 Share Posted March 15, 2019 @Codenameglassy Posting a "question" in three different Forums, which two of them are going to be merged to this one, is thruly a good way to present yourself here. You should have a careful read about Forum Rules, Forum Etiquette, and how to post a question on here. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 15, 2019 Moderators Share Posted March 15, 2019 (edited) Stick to one thread in the future. Edit: I have now needed to merge 3 topics for you. Please do not do this again; it will not get you an answer any more quickly. Edited March 15, 2019 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Codenameglassy Posted March 16, 2019 Author Share Posted March 16, 2019 so this is my script: #RequireAdmin AutoItSetOption('MouseCoordMode', 0) HotKeySet('x', "ExitProgram") Func ExitProgram() Exit EndFunc ;==>ExitProgram WinWait('LDPlayer') WinActivate('LDPlayer') Global $battle1 = False; Global $auto = False; MouseClick('left',1151,665,1,1) sleep(2000) MouseClick('left',770,353,1,1) sleep(5000) While (1) $battle1 = PixelSearch(1136,269,1138,271,0xBA8104,5) if not(@error) Then Mouseclick('left',$battle1[0],$battle1[1]) sleep(2000) $battle1 = True it does work up to $battle1 then after the mouse click it stops and doesnot perform the rest of the script Do $isbattle1 = PixelSearch(1136,269,1138,271,0xBA8104,5) if not(@error) Then $battle1 = false Else EndIf Until($battle1) MouseClick('left',1195,660,1,1) ;click auto $auto = PixelSearch(100,665,102,667,0xCEC495,5) if not(@error) Then MouseClick('left',$auto[0],$auto[1]) sleep(2000) $auto = True Do $isauto = PixelSearch(100,665,102,667,0xCEC495,5) if not(@error) Then $auto = False Else EndIf Until($auto) EndIf EndIf WEnd while(1) sleep(250) WEnd EndIf Link to comment Share on other sites More sharing options...
Codenameglassy Posted March 16, 2019 Author Share Posted March 16, 2019 Thank you for replaying so basically i want to click at point 1 by pixel searching and wait until pixel search finds point 2 it find point 2 , then to point 3, 4, as on Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 16, 2019 Moderators Share Posted March 16, 2019 Codenameglassy, Quote it does work up to $battle1 You appear not to have read the Forum rules since your arrival. Please do read them - particularly the bit about not discussing game automation - before you post again and then you will understand why you will get no help and this thread will now be locked. 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...
Recommended Posts