Sign in to follow this  
Followers 0
Silver21uk

MouseGetPos and ControlGetPos

3 posts in this topic

Ok ive bin working on getting the positions for both the active window and where the mouse is in relation to this window. Now. i get the coordinates for the control but when im using the mouse and point to those exact coordinates they are no where near the control?????

Mind boggling any ideas?

Share this post


Link to post
Share on other sites



You need to look at this option

MouseCoordMode

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


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Yep already tried that. Lol read the help file for a change. when using the Window info it still not in the same position.

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