Jump to content

Pixel code


layer
 Share

Recommended Posts

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

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

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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

;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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...