Jump to content

Probably a stupid question...


Recommended Posts

I want to know how you select the coordinates when using PixelSearch.

The help file tells me this:

PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] )

left - left coordinate of rectangle.

top - top coordinate of rectangle.

right - right coordinate of rectangle.

bottom - bottom coordinate of rectangle.

What exactly is the left, top, right and bottom of the rectangle?

Is it that 'top' and 'bottom' are y coordinates and 'left' and 'right' are x?

Or maybe I'm completely wrong?

Thanks in advance >_<

Edit: LOL y and x mixed up... I'm pretty tired...

Edited by Lithium
Link to comment
Share on other sites

I have never used PixelSearch, but it seems you got the x and y coordinates correct. If you run the example script from the help file, it will help you to discover what is happening. The left, top, right and bottom of the rectangle refer to the position of a rectangle on your screen. If you choose left = 0, top = 0, bottom = @DesktopHeight and right = @DesktopWidth, then the whole screen area will be searched.

Edited by czardas
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...