Jump to content

Help with greater then and less then


glarson
 Share

Recommended Posts

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!!!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...