Jump to content

Remove screen resolution dependency for MouseClick


ktxmatrix
 Share

Recommended Posts

Hey guys,

This is my first post and let me say that AUTOIT ROCKS !! Use it for all my automation needs. Use it everyday, many times a day :idiot:

I wanted to know if its possible to reduce the screen resolution dependency for the current mouse movements using the provided functions. For an application that I am testing, there is no way to manipulate using keystrokes (QuickTime player). Hence I am forced to resort to MouseClicks for certain actions and this is risky since it reduces the portability of the script when compiled to an exe.

Whenever the screen resolution changes, the mouse movements will differ and hence I can not run my script on multiple computers without fear of running into an error. Is there a workaround for this currently ?

1) I can have a function that forcibly changes the user's monitor resolution to the same as that on which the the test script was made. This can still cause a problem for windows shifting unexpectedly for some unstable application.

2) There can be a function which forces the mouse to move to go to the activated window and then we can have a mouseclick function that will take coordinates relative to the Active window.

Would appreciate any comments / suggestions on this...

Thanks

Sumit

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