DreamPhantom Posted July 12, 2011 Posted July 12, 2011 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.)
AdmiralAlkex Posted July 12, 2011 Posted July 12, 2011 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
somdcomputerguy Posted July 12, 2011 Posted July 12, 2011 (edited) Maybe the _MouseTrap() function is what you're looking for. If so, you'll find more info about it in the Helpfile. Edited July 12, 2011 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
DreamPhantom Posted July 12, 2011 Author Posted July 12, 2011 Thx... wanted (client/browser ~ coord) Before now i had to max my browser for the AutoIT script to run.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now