Jump to content

Window And Desktop Co-ordianates


Recommended Posts

  • Developers

when are desktop x/y values used and when are window x/y values used?

or is there code that allows you to choose? Ive looked through the help file with no result...

<{POST_SNAPBACK}>

What functions are you referening to?

e.g. When you talk about PixelGetColor it returns the coordinates depending on the AutoItSetOption("PixelCoordMode", mode) option ....

:ph34r:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

What functions are you referening to?

e.g. When you talk about PixelGetColor it returns the coordinates depending on the AutoItSetOption("PixelCoordMode", mode) option ....

:ph34r:

<{POST_SNAPBACK}>

ah, so each function is different? Some use desktop and others use window?

Roger! You son of a big pile o' Monkey Nuts.

Link to comment
Share on other sites

ah, so each function is different? Some use desktop and others use window?

<{POST_SNAPBACK}>

Maybe this helps:

PixelCoordMode

Sets the way coords are used in the pixel functions, either absolute coords or coords relative to the current active window:

1 = absolute screen coordinates (default)

0 = relative coords to the active window

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Maybe this helps:

<{POST_SNAPBACK}>

exaclty what I was after, I had the impression that different functions used different co-ord modes

ty :ph34r:

does this also apply for mouseclicks?

Edited by mcfr1es

Roger! You son of a big pile o' Monkey Nuts.

Link to comment
Share on other sites

does this also apply for mouseclicks?

<{POST_SNAPBACK}>

That answer can be found in the same place in the helpfile as I mentioned above. Shoulnd't be too hard to find...

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Also take a look at AutoItSetOption. Its options CaretCoordMode, MouseCoordMode and PixelCoordMode determine how various parts of AutoIt look at co-ordinates.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

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