Jump to content

Recommended Posts

Posted

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?

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

Posted

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?

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...