zaky324 Posted January 23, 2012 Share Posted January 23, 2012 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 Do MouseClick ("left", 791, 434, 1, 200) Sleep (4000) Send ("^f") Sleep (3000) MouseClick ("left", 849, 435, 1, 200) Sleep (1000) $Pixel = PixelGetColor($xCoordinate, $YCoordinate) Sleep(2000) Until Hex($Pixel, 6) = $PixelColour Msgbox(0,"Colour Found", "The requested colour, "&$PixelColour&" was found at the coordinates of ("&$xCoordinate&","&$yCoordinate&").") EndFunc Link to comment Share on other sites More sharing options...
JohnOne Posted January 23, 2012 Share Posted January 23, 2012 It does do what you want it to. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
zaky324 Posted January 23, 2012 Author Share Posted January 23, 2012 (edited) but it just kept clicking as if the pixel's func wasnt in it. Edited January 23, 2012 by zaky324 Link to comment Share on other sites More sharing options...
Blinky Posted January 23, 2012 Share Posted January 23, 2012 try pixel color without "0x" Global $PixelColour = FFFF00 P.S. JohnOne was sarcastic TIP Just explain what you whant. we cant gues Link to comment Share on other sites More sharing options...
zaky324 Posted January 23, 2012 Author Share Posted January 23, 2012 this is wat i get if i do that, : ERROR: syntax error Global $PixelColour = FFFF00 Link to comment Share on other sites More sharing options...
Blinky Posted January 24, 2012 Share Posted January 24, 2012 Srry forgot the comas. The hex function returns a string without the 0x Global $PixelColour = "FFFF00" zaky324 1 Link to comment Share on other sites More sharing options...
zaky324 Posted January 24, 2012 Author Share Posted January 24, 2012 you are my god Link to comment Share on other sites More sharing options...
Blinky Posted January 24, 2012 Share Posted January 24, 2012 ur welcome! zaky324 1 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