Jump to content
Sign in to follow this  

Remove screen resolution dependency for MouseClick

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



Share this post

Link to post
Share on other sites

This is my first post

No need to say this because we already know:

a) You posted in the wrong place.

B) You didn't read the helpfile (MouseCoordMode, Control* functions).

Edited by sugi

Share this post

Link to post
Share on other sites

1) NEVER change any user's screen resolution. It is considered rude in the most extreme sense to change a user's settings without the user giving you/the program express permission to do so.

Who else would I be?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...