jimmer Posted January 3, 2005 Posted January 3, 2005 hello, I have the color the of the pixel the color is: Hex: 0x525552 Dec: 5395794 now, to my understanding, you are suppose to pick one of them, correct? I do not have an idea of what to do with those numbers? this is all I know to my knowledge MouseClick("left", x, y, #, speed) I would like to use the hex or dec color instead of the x and y -thanks
pcdestroyer Posted January 3, 2005 Posted January 3, 2005 hello, I have the color the of the pixelthe color is:Hex: 0x525552 Dec: 5395794now, to my understanding, you are suppose to pick one of them, correct?I do not have an idea of what to do with those numbers?this is all I know to my knowledgeMouseClick("left", x, y, #, speed)I would like to use the hex or dec color instead of the x and y-thanks<{POST_SNAPBACK}>so u want the mouse to click where the pixel color is ? if that's what u want then go to the help file and read about PixelSearch
jimmer Posted January 3, 2005 Author Posted January 3, 2005 ; Find a pure red pixel in the range 0,0-20,300 $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 ) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) EndIf Alright, I've searched under PixelSearch, and it will search the pixel for me, and give me a msgbox, that's the last thing I need. OK... so this is the normal mouse clicker? Where would I insert the color values? MouseClick("left", x, y, #, speed)
pcdestroyer Posted January 3, 2005 Posted January 3, 2005 (edited) $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 ) If Not @error Then MouseClick("left", $coord[0],$coord[1], 1, 1) endif ;$coord[0] is X and $coord[1] is Y Edited January 3, 2005 by pcdestroyer
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