Mysis Posted December 31, 2012 Posted December 31, 2012 (edited) Hi, I am making a very small widget that searches for a pure blue pixel (hex: 0000FF) on the screen, then gives you the coordinates of it. $pixcoor = PixelSearch(610, 53, 805, 245, 0000FF) MsgBox(0, "Blue Pixel x,y:", $pixcoor[0] & "," & $pixcoor[1]) When i run it in SciTE, it gives me a syntax error on 0000FF. Any suggestions? Thanks, Mysis Edited December 31, 2012 by Mysis
GordonFreeman Posted December 31, 2012 Posted December 31, 2012 (edited) and 0x0000FF"0x"$pixcoor = PixelSearch(610, 53, 805, 245, 0x0000FF) If @error <> 1 Then MsgBox(0, "Blue Pixel x,y:", $pixcoor[0] & "," & $pixcoor[1]) EndIf ;color Colour value of pixel to find (in decimal or hex). ;Failure: Sets @error to 1 if color is not found. Edited December 31, 2012 by GordonFreeman Frabjous Installation
Mysis Posted December 31, 2012 Author Posted December 31, 2012 Thanks, wasn't in the help file. (except for the examples I never look at)
GordonFreeman Posted December 31, 2012 Posted December 31, 2012 (edited) Thanks, wasn't in the help file. (except for the examples I never look at)I use a lot the help file. But still once in a while I do not see something You need to use the help file more Edited December 31, 2012 by GordonFreeman Frabjous Installation
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