Jump to content
Sign in to follow this  
DreamPhantom

Question about Mouse

Recommended Posts

DreamPhantom

How do i bind my mouse to a specific window?

As i can not control where a window opens, nor do i want to keep that window there every time i want an action done, how do i bind my mouse to a specific window?

In AutoHotkey all I had to do was bring the window into focus and the script will bind itself to focused window. (Mouse cooridnates would be based off of "window/client" cooridnates instead of the whole screen.)

Share this post


Link to post
Share on other sites
AdmiralAlkex

Hi and Welcome to the forums!

Not sure what you are asking for here. Look at AutoItSetOption/Opt (more specifically MouseCoordMode) if you want Mouse*() funcs to use client coords.

Use ControlClick() if you want to "click" a specific window.

Share this post


Link to post
Share on other sites
somdcomputerguy

Maybe the _MouseTrap() function is what you're looking for. If so, you'll find more info about it in the Helpfile.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
DreamPhantom

Thx... wanted (client/browser ~ coord)

Before now i had to max my browser for the AutoIT script to run.

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  

×