Jump to content

hotkey and mouse 2 possible ?


kantaki
 Share

Recommended Posts

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 ?

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...