Jump to content
Sign in to follow this  
Harpydog

Pixelsearch help

Recommended Posts

Harpydog

Hey well i want to pixelsearch a little box in the top left of my screen.. i looked at the AuHelp.. but i just dont understand, it asks for a left, top , right and bottom coords.. but do i put the X coord or teh Y? =/

--Harpy

Share this post


Link to post
Share on other sites
jvanegmond

Well.. A box has 4 sides to it. AutoIt asks for those coordinates in this order: Top, left, right, bottom.

Example:

A 40 pixel wide and 50 pixel tall box in the top left corner:

top = 0

left = 0

right = 40

bottom = 50

Note: You might just need PixelGetColor. lol.

Edited by Manadar

Share this post


Link to post
Share on other sites
AceLoc

Note: You might just need PixelGetColor. lol.

Helpfile Ftw. :)

$var = PixelGetColor( 10 , 100 )
MsgBox(0,"The decmial color is", $var)
MsgBox(0,"The hex color is", Hex($var, 6))
Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

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  

×