Jump to content

Recommended Posts

Posted

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
Posted

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.

Posted

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
Posted

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
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.

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.

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.

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
×
×
  • Create New...