Jump to content

help about pixelsearch


Recommended Posts

  • 1 month later...

I use this code to check a white character on the line at KLH84 position:

if PixelSearch(90,148,90,148,0xffffff) <> @error Then 
         msgbox(0,"","CORRECT")
endif

but however KHL84 appears or not, the msgbox always show

Edited by langthang084
Link to comment
Share on other sites

Your logic is wrong.

$coords = PixelSearch (...)
If Not @error Then
;Correct;
Else
;Incorrect
EndIf

Christ even the helpfile has and example of what you want! READ IT!

Link to comment
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
 Share

  • Recently Browsing   0 members

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