|
Post by Admin on Jun 21, 2014 16:53:45 GMT
;Define the color you want to search for, here it is black $Color = 0
;Search for the color $First_Color_Pixel_Found_On_Screen = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, $Color)
;If the color is not found then exit the script If @error Then MsgBox(0, "Error: " & @error, "Sorry the color was not found") Exit EndIf
;If we reach here, the color was found, so click it. MouseClick("Primary", $First_Color_Pixel_Found_On_Screen[0], $First_Color_Pixel_Found_On_Screen[1])
|
|