Jump to content
Sign in to follow this  
redman12

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

@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:

Edited by FrancescoDiMuro

Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...