Jump to content

Is it possible to track window resolution changes?


Recommended Posts

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!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Link to comment
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?

Link to comment
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!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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