Sign in to follow this  
Followers 0
layer

Pixel code

8 posts in this topic

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

Share this post


Link to post
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.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

ah ha!!! thank you! so much, i really appreciate it, seriously =D


FootbaG

Share this post


Link to post
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
Sign in to follow this  
Followers 0