glarson Posted October 12, 2007 Share Posted October 12, 2007 How would I check to see if a color value is between two preset color values? I can't get the <&> function to work. Here is an example script. I want to return a color value if the color is between two set color values and a message if it is outside those values.#include <Color.au3>$color=0xc61818;PixelGetColor(116,242)$iRedColor = _ColorGetRed($color)If $iRedColor>220 And <230 Then ;this part of the script doesn't work MsgBox( 4096, "AutoIt", $iRedColor )Else MsgBox(4096,"AutoIt","not red")EndIfHellp Please!!! Link to comment Share on other sites More sharing options...
Developers Jos Posted October 12, 2007 Developers Share Posted October 12, 2007 (edited) If $iRedColor > 220 And $iRedColor < 230 Then Edited October 12, 2007 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
glarson Posted October 12, 2007 Author Share Posted October 12, 2007 If $iRedColor > 220 And $iRedColor < 230 Then THANK YOU!!! 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