Sign in to follow this  
Followers 0
U2mad

Mouse events without capturing the mouse?

4 posts in this topic

I'm a bit new at autoit so I'm trying to figure out if this is even possible. Is it possible to have Mouse events without capturing the mouse?

I want to be able to have a game running in windowed mode off to the side or ideally even in the background, but still have autoit making mouse clicks in that window without grabbing the mouse and interrupting what I'm doing.

Is this a possibility or is it outside the realm of what autoit can do?

Share this post


Link to post
Share on other sites



I'm a bit new at autoit so I'm trying to figure out if this is even possible. Is it possible to have Mouse events without capturing the mouse?

I want to be able to have a game running in windowed mode off to the side or ideally even in the background, but still have autoit making mouse clicks in that window without grabbing the mouse and interrupting what I'm doing.

Is this a possibility or is it outside the realm of what autoit can do?

Don't believe it's possible to have a 'mouse clone'. AutoIt would have to use your mouse to click something.

The fastest way you could do this however is this:

$aPos = MouseGetPos()
MouseClick("Primary", X, Y, 1, 0) ; 1 click, instant move
MouseMove($aPos[0], $aPos[1], 0) ; Move the mouse back to it's original position

Share this post


Link to post
Share on other sites

Thank you, for the replies, I think that will set me in the right direction ;)

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