Sign in to follow this  
Followers 0
sfamonkey

Mouse and screen resolution

5 posts in this topic

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

ok. I like the key board command and they do what I want them to do so I think I will just stick to that. The easier the better

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

very true. I was thinking about making a prank program using the mouse command, but I don't care.

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  
Followers 0