Jump to content

PixelSearch Problem or glitch?


Recommended Posts

okay so i was using pixel search in a do loop, but once the part with that involves the pixel command is done and move on to the next  command, the next pixel command gives and error,  is it coz im using the same variable for both? if so is there a way around using pixle command without having to make a ton of variables for each one.

Link to comment
Share on other sites

HotKeySet("{F8}", "myExit")

$x = WinActivate("edited")

Local $bones = 1
Global $pix = True


MsgBox(0,"","start")

For $a = 1 To 25
FindPix()
Next
myExit()

Func FindFish()
   if $bones < 25 Then
      $pix = PixelSearch(-1360, 21, -821, 541, 0xC88EDD, 5)
      Sleep(450)
      MouseClick("right", $pix[0], $pix[1],1,1)
      Sleep (850)
      MouseClick("left", $pix[0], $pix[1] + 25,1,1)
      Sleep(2000)
      EndIf
EndFunc


Func myExit()
   MsgBox(0,"Exiting", "ecit")
   Exit
EndFunc

thats the part thats stuffing up

Edited by redman12
Link to comment
Share on other sites

  • Jos locked this topic
  • Moderators
20 hours ago, FrancescoDiMuro said:

@redman12

Edit the post after a Moderator/Developer has seen the rest of all the others functions/variables names (FindFish, Bones...), it's definitely not so smart from you :muttley:

How many times, exactly, do you need to be personally reminded to stay out of a thread in which a Mod is working? Do you really believe your little comments add anything to the discussion?

Edit: When your next comment leads to a vacation from the forum, we'll see if your response is the same :)

Edited 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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...