Jump to content
Sign in to follow this  
chrisrulz

Pixel colours

Recommended Posts

chrisrulz

Heyy, ive finnaly just finished my script but ive come across a stuff up i should of throught about before. Now ive set it up so a couple of things are reilied on sleep time but it isnt very accurate so now i just need some help telling it to look at a spesific position nd it starts grey and when it changes colour i wont it to click can enyone help me out??.

..chris

Share this post


Link to post
Share on other sites
omikron48

Use PixelGetColor to get the current color of the pixel in question. You can just continually loop until the color changes to the color you want.

Kinda like:

While PixelGetColor($x, $y) <> $targetColor
    Sleep(10)
WEnd

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  

×