Jump to content

Mouse and screen resolution


Recommended Posts

Hi. I looked in AutoIT help file and found out how to use the mouse in my scripts which I will just like. But I have bit of a problem. I am using these scripts in my windows install but the screen resolution is like 800*600 when my screen res is 1204*1280. Is there a way I could program mouse and it will work with different resoultions?

Link to comment
Share on other sites

The best thing to do would be to directally interact with the controls in the installer instead of using mouseclicks. That way it doesn't matter if the installer window is moved, resized, or even minimized or hidden.

Otherwise, you could set the mouse coordinate mode relative to the active window, and keep the installer under 800x600 (for a max of about 600x400.) That way it could have the same coordinates under all resolutions.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

But what if the window is deactivated? Or worse yet, another app (like a chat client) takes the focus of the window and you start sending to that window instead? Using controls is a more reliable way to interact with applications.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

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