Sign in to follow this  
Followers 0
glarson

Help with greater then and less then

3 posts in this topic

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")

EndIf

Hellp Please!!!

Share this post


Link to post
Share on other sites

If $iRedColor > 220 And $iRedColor < 230 Then

:)

THANK YOU!!!

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