Jump to content

Pixel Search


Recommended Posts

I was wondering if you can use the pixelsearch command in an IF THEN statement.

something like: IF Pixelsearch(12,40,100,200)=1677555 THEN

If not, then would:

DO

PixelSearch(1,1,100,100,1556765)

IF NOT @error THEN

dfaefdasfesdageaefd

EndIF

@error=0

UNTIL 1=2

reset @error everytime it goes through the loop? would that work?

Link to comment
Share on other sites

DO
PixelSearch(1,1,100,100,1556765)
IF NOT @error THEN
dfaefdasfesdageaefd
EndIF

@error=0
UNTIL $1=2
make sure you use a $var in the until statment

yes that should work, not 100% sure, never use the search command.

Link to comment
Share on other sites

The @error code is only valid until the next function is called. Consequently, you may need to backup the status of @error in a variable if you are testing it in a While-WEnd loop.

Try

SetError ( 0 )

maybe that will help.

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...