Sign in to follow this  
Followers 0
kantaki

hotkey and mouse 2 possible ?

4 posts in this topic

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



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

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

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