SmOke_N 210 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. Share this post Link to post Share on other sites
SmOke_N 210 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. Share this post Link to post Share on other sites