Sign in to follow this  
Followers 0
javas

PixelSearch() Search area

1 post in this topic

I made this code to detect two colors and if there are where they are supposed to be then click different places if some places were already clicked but its not working. Is it because I'm not searching in a big enough area even though I know the color should be at that exact point? Any help is appreciated.

Func Purple()
PixelSearch(498, 468, 498, 468, 0xEB68C7, 10)
If not @error then

 PixelSearch(489, 475, 489, 475, 0xDD7FC5, 10)
If not @error then

     if $C1PH = 0 Then
      Click1()
      $C1PH = 1
     ElseIf $C4PH = 0 Then
      Click4()
      $C4PH = 1
     ElseIf $C5BH = 0 Then
      Click5()
      $C5BH = 1
     ElseIf $C6GH = 0 Then
      Click6()
      $C6GH = 1
     EndIf
  EndIf
 EndIf

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0