Jump to content

Help with $PixelGetColor

Recommended Posts

I'm not sure if i did it properly but it doesn't seem to do what i want it to.

Func Pixel()
WinActivate("a program")
Global $xCoordinate = 716      
Global $yCoordinate = 728            
Global $PixelColour = 0xFFFF00   
Global $Pixel
   MouseClick ("left", 791, 434, 1, 200)
   Sleep (4000)
   Send ("^f")
   Sleep (3000)
   MouseClick ("left", 849, 435, 1, 200)
   Sleep (1000)
   $Pixel = PixelGetColor($xCoordinate, $YCoordinate)
  Until Hex($Pixel, 6) = $PixelColour
Msgbox(0,"Colour Found", "The requested colour, "&$PixelColour&" was found at the coordinates of ("&$xCoordinate&","&$yCoordinate&").")
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...