
It finds the rocks in the selected area but only seems to click on one of them and hover the cursor over the other ones until the same rock comes back. Can someone look at my script and tell me whats wrong? I'm using AutoIt. Here is my script:
HotKeySet("{ESC}", "terminate") HotKeySet("!c", "getColor") HotKeySet("!a", "attackLoop") Global $color Global $interval $interval = "10000" MsgBox(0, "Starting Up", "Starting, use ESCAPE to quit, Alt + C to set color, and Alt + A to attack.") Func Terminate Exit 1 EndFunc Func getcolor $point = MouseGetPos $color = PixelGetColor($point[0], $point[1]) MsgBox(0, "Color Set", "The color has been set to " & $color) EndFunc Func attackloop MsgBox(0, "Mining", "Starting to mine") While 1 $point = PixelSearch(37, 74, 1313, 892, $color) if IsArray($point) Then MouseClick("right", $point[0], $point[1]) Sleep($interval) ContinueLoop EndIf WEnd EndFunc While 1 Sleep($interval) WEnd
RELATED VIDEO


