Sign in to follow this  
Followers 0
Sreenath

Is it possible to track window resolution changes?

6 posts in this topic

I am doing some mouse movements and clicks using coordinates. Is it possible to find out the resolution changes for that window. According to the resolution the coordinates are changing?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If you mean the screen resolution, try using @DeskopWidth and @DesktopHeight.

If you mean the size of your window, try WinGetPos.

Edit: and for the controls use ControlGetPos

Alzo

Edited by marfdaman

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

Actually I am using the Recorder to record some events. Suppose if I am changing the screen resolution and running my application. Then the positions of all controls will change, right? How can I solve this problem? The macros that u said are read only. If I want to chnage the resolution to the old one, how can i do that?

Share this post


Link to post
Share on other sites

I think it must be possible in autoit to change the resolution using some kind of dll call oslt, but why not just perform an adlib and keep the control coordinates updated that way?


Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

See my signature

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