kantaki Posted January 17, 2012 Posted January 17, 2012 hello, i build a window arranger where i can minimize a specific window HotKeySet("{numpad0}", "HotKey") Func HotKey() ..... but instead of the numpad0 i want the mouse2 (rightclick) i tried it with HotKeySet(MouseClick("Right"), "HotKey") but this didnt work. any ideas ?
Blue_Drache Posted January 17, 2012 Posted January 17, 2012 HotKeySet(MouseClick("Right"), "HotKey") .. you're telling to click the mousekey ... not capture it. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
JohnOne Posted January 17, 2012 Posted January 17, 2012 Look at IsPressed UDF If IsPressed("02") Then... AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Markos Posted January 17, 2012 Posted January 17, 2012 With _IsPressed you have to poll for mouse click very often. For your need its better to use windows hooks. Take a look at _WinAPI_SetWindowsHookEx example, just use $WH_MOUSE_LL as hook type. MSDN documentation should help you understand how this works: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx
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