brawling83 Posted February 27, 2008 Share Posted February 27, 2008 Hey guys, Once I have used the pixelgetcolor function to get a particular pixel color, how do I then script this in to make it useful. For instance, if I do this: $colour1 = PixelGetColor ( 875 , 140 ) to get a pixel colour, is it then possible for me to do something like this: If $colour1 = red, then do this, if $colour1 = not red, then doing that. Hope that makes sense! Cheers Link to comment Share on other sites More sharing options...
weaponx Posted February 27, 2008 Share Posted February 27, 2008 $RED = 0xff0000 $BLUE = 0x0000ff $GREEN = 0x00ff00 $result = PixelGetColor(1,1) If $result = $RED Then MsgBox(0,"","Pixel at 1,1 is red") Link to comment Share on other sites More sharing options...
brawling83 Posted February 27, 2008 Author Share Posted February 27, 2008 hehe.. just embarrassed myself at the simplicity of it. thanks for the help mate. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now