layer Posted October 30, 2004 Share Posted October 30, 2004 if i want autoit to scan for a pixel on the screen, i know the command and all, but when i have to tell it the pixel color in like hex or decimal, how would i go doing this? like is there a chart? you know what i mean right? if you don't just tell me and ill tell you in better detail FootbaG Link to comment Share on other sites More sharing options...
scriptkitty Posted October 30, 2004 Share Posted October 30, 2004 test out the AutoItSpy tool, It gets automatically installed, and shows many things including the color under your cursor as well as position in active window and on screen. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
layer Posted October 30, 2004 Author Share Posted October 30, 2004 test out the AutoItSpy tool, It gets automatically installed, and shows many things including the color under your cursor as well as position in active window and on screen.<{POST_SNAPBACK}>hmmm, i didnt try that, ill try it now and let you know how it wnet in a little, thanks man! FootbaG Link to comment Share on other sites More sharing options...
layer Posted October 30, 2004 Author Share Posted October 30, 2004 ok, now i can get the hex or decimal of the pixel, but do i just enter that raw number for it to look for? FootbaG Link to comment Share on other sites More sharing options...
scriptkitty Posted October 30, 2004 Share Posted October 30, 2004 (edited) also make sure to have the right option, Opt("PixelCoordMode", 1) ;1=absolute, 0=relative help file uses decimal version. Remember it gives back an array or coords Edited October 30, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
scriptkitty Posted October 30, 2004 Share Posted October 30, 2004 (edited) there are two different searches, one is a one pixel version. 1st:what is the pixel at x,y 2nd:tell me the coord that first matches this color in the range x1,y1 to x2,y2 make sence? Edited October 30, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
scriptkitty Posted October 30, 2004 Share Posted October 30, 2004 (edited) ;Find a pure white pixel on the screen $coord = PixelSearch( 0, 0, @DesktopWidth , @DesktopHeight, 0xFFFFFF ) if ubound($coord)>1 then msgbox(1,"Found",$coord[0]&","&$coord[1]) else msgbox(1,"Not found","") endif Edited October 30, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
layer Posted October 30, 2004 Author Share Posted October 30, 2004 ah ha!!! thank you! so much, i really appreciate it, seriously =D FootbaG 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