Sign in to follow this  
Followers 0
Guest bomber

Relative Windowing

3 posts in this topic

Is there a system variable or macro or function to obtain the Left and Top values of a window during script runtime? For calculating in-window mouse coordinates of windows that are not in the top-left corner. The AutoIt Window tool shows 'X' and 'Y' values for the window, and that is the value I need, but can't find where it would be the list is so long :)

Thank you in advance for any assistance :evil:

Share this post


Link to post
Share on other sites



wingetpos


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

bomber:

Is there a system variable or macro or function to obtain the Left and Top values of a window during script runtime?

t0ddie:

wingetpos

bomber:

For calculating in-window mouse coordinates of windows that are not in the top-left corner.

herewasplato:

You can do that if you want to - or just change the way AutoIt uses x/y coordinates via AutoItSetOption - MouseCoordMode

help file:

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

0 = relative coords to the active window

1 = absolute screen coordinates (default)

2 = relative coords to the client area of the active window

bomber:

The AutoIt Window tool shows 'X' and 'Y' values for the window, and that is the value I need, but can't find where it would be the list is so long

herewasplato:

In case you ever need x/y for desktop...

You can change that "tool" setting as needed/desired.

See Options > Coord Mode:

Screen

Window

Client

Also, I would suggest using mouse clicks as the last resort. The "control" series of functions might be better - unless it is a browser window, then maybe tab will work for you. (...and then there is always COM in the beta version of Autoit. :-)

enjoy.........


[size="1"][font="Arial"].[u].[/u][/font][/size]

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  
Followers 0