PEscobar Posted January 8, 2016 Posted January 8, 2016 (edited) So I wrote this script Local $coord1 = PixelSearch ($leftInv, $topInv, $rightInv, $bottomInv, 0x9DA1BD, 5) If not @error Then MouseClick("left", $coord1[0], $coord1[1])It clicks on the colour and everything, but what I want is for it to click on other pixels of the same colour in the area. I put it in a loop and it still clicks on the same pixels every time. How do I change it so it clicks on the same colour, but on different coordinates? Edited January 9, 2016 by PEscobar Clarfication
PEscobar Posted January 9, 2016 Author Posted January 9, 2016 So I wrote this in a script Local $coord1 = PixelSearch (13, 156, 1884, 985, 0xFFFFFF, 1) If not @error Then MouseClick("left", $coord1[0], $coord1[1])It clicks on the correct colour, but the problem is that it clicks on the same coordinates that it originally got the colour from. There are many pixels of the same colour in the region so I know that isn't the problem. I also put it in a loop so $coord1 should be different every time it runs through it shouldn't it?
JohnOne Posted January 9, 2016 Posted January 9, 2016 Show us the loop.Or increment your y coordinate by $coord1[0], and then show us your loop. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
JohnOne Posted January 9, 2016 Posted January 9, 2016 Can not see anything there AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
InunoTaishou Posted January 9, 2016 Posted January 9, 2016 Global $leftInv = 840 Global $topInv = 332 Global $rightInv = 1026 Global $bottomInv = 590 WithdrawHerb() WithdrawVial() ExitBank() $coord1 = PixelSearch ($leftInv, $topInv, $rightInv, $bottomInv, 0x9DA1BD, 5) If not @error Then MouseClick("left", $coord1[0], $coord1[1]) EndIf $coord2 = PixelSearch ($leftInv, $topInv, $rightInv, $bottomInv, 0x385905, 5) If not @error Then MouseClick("left", $coord2[0], $coord2[1]) EndIfLooks like gameplay automation, WoW or maybe even Rift.
Moderators Melba23 Posted January 9, 2016 Moderators Posted January 9, 2016 PEscobar,You seem to have problems understanding our stance on gamebots. I suggest you make some effort to do so because the next time you post a game-related question you will be sanctioned.Threads merged and 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
Recommended Posts