kantaki 0 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 ? Share this post Link to post Share on other sites
Blue_Drache 260 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 Share this post Link to post Share on other sites
JohnOne 1,603 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. Share this post Link to post Share on other sites
Markos 0 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 Share this post Link to post Share on other sites