Moderators SmOke_N Posted May 30, 2005 Moderators Share Posted May 30, 2005 I was wondering if anyone had found a way to use PixelGetColor w/ shade variations. I had thought something like this might work: $Process = 0 $Shades = PixelSearch( 0, 0, 20, 20, 0xFF0000, 20, 1 ) If (PixelGetColor(0, 20) == $Shades) Then $Process = $Process + 1; Sleep(100) EndIf Does this look right or am I way off base? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 31, 2005 Author Moderators Share Posted May 31, 2005 Or does this make more sense? Func Blah() While WinExist("BooHoo") Local $Process = 0 $Color1 = PixelSearch( 0, 0, 20, 20, 0xFF0000, 20, 1 ) If Not $Color1 == 1 Then $Process = $Process + 1; Sleep(100) EndIf MsgBox(0, "Total", "Your Total Is: " & $Process) Wend EndFunc Blah, just getting frustrated sorry. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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