Jump to content
Sign in to follow this  
SmOke_N

PixelGetColor

Recommended Posts

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...