Sign in to follow this  
Followers 0
t1g3r

Pixel Color

3 posts in this topic

Ok guys quick question, on an active window how can i get the mouse to wait in one x, y position for a pixel change, then when that pixel change occurs to go of and complete other actions, then return to the same x, y pisition to wait for the pixel change again. i also want to keep this in one never ending loop.

Share this post


Link to post
Share on other sites



while 1
while pixelgetcolor (x, y) <> "your color"; maybe store your color in a variable
sleep (10)
wend
;perform other actions
wend

this should do the job

hope that helps

thanks i will try it.

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