Jump to content
Sign in to follow this  
larcerkev

Pixelsearch restricting?

Recommended Posts

larcerkev

Is there anyway that i can restrict a pixelsearch to the dimensions of a window?

I want to be able to have the window of a game anywhere while it searches for a certain color and returns a pixel location within the window that i can use with controlclick

EDIT: Or ever an command to detect where the windows pixels start would be very helpful.

Edited by larcerkev

Share this post


Link to post
Share on other sites
larcerkev

You can set the AutoIt option PixelCoordMode to use coordinates relative to the current active window.

Thanks, this worked just fine.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.