Sign in to follow this  
Followers 0
sen21

Need Help With Mouse Movements

4 posts in this topic

Hello, I'm new to AutoIt but very fluent in Java. I need to know how to move the mouse within a game window. The only problem is that sometimes the game window will be at different locations on a computer, therefore the mouse movements to click the same button may need to be different. Is there anyway to somehow 'dock' the game window as being the only location for the mouse to move or something of the sort?

Let me know if what I'm trying to say isn't making sense and I'll try to explain better.

Thanks in advance

Share this post


Link to post
Share on other sites



Hello, I'm new to AutoIt but very fluent in Java. I need to know how to move the mouse within a game window. The only problem is that sometimes the game window will be at different locations on a computer, therefore the mouse movements to click the same button may need to be different. Is there anyway to somehow 'dock' the game window as being the only location for the mouse to move or something of the sort?

Let me know if what I'm trying to say isn't making sense and I'll try to explain better.

Thanks in advance

Welcome to the forums sen21.

If you're ok with Java then AutoIt will be easy to pick up, but, like all languages, you need to use the Help!. If you look up MouseMove you will see a reference to MouseCoordMode which gives the options you need.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

This may help you.

AutoitSetOption("MouseCoordMode", 0)
; 0 = relative coords to the active window
; 1 = absolute screen coordinates (default)

But better way is ControlClick() (if possible). Check Controls with AutoIt Window Info.


Best Regards BugFix  

Share this post


Link to post
Share on other sites

Thanks =)

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