Jump to content

Something like nm_midclk?


MISIIM
 Share

Recommended Posts

Is there any notification for use with WM_NOTIFY that is sent on a middle/mouse wheel click?

I looked around MSDN for something, but I couldn't find anything.

Thanks a lot.

Edited by MISIIM
Link to comment
Share on other sites

I know you asked for WM_NOTIFY and I'm not sure if this helps.

But you can register the middle mouse click with it's constant and GuiRegisterMsg()..

#include <GUIConstants.au3>

Global Const $WM_MBUTTONDOWN = 0x0207

GUICreate("My GUI")
GUISetState (@SW_SHOW)

GUIRegisterMsg($WM_MBUTTONDOWN, "WM_MBUTTONDOWN_FUNC")

While 1
    If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit
Wend
    
Func WM_MBUTTONDOWN_FUNC($hWnd, $Msg, $wParam, $lParam)
    ConsoleWrite("$WM_MBUTTONDOWN = 0x" & Hex($Msg, 4) & @LF)
    Return $GUI_RUNDEFMSG
EndFunc

Cheers

Link to comment
Share on other sites

I know you asked for WM_NOTIFY and I'm not sure if this helps.

But you can register the middle mouse click with it's constant and GuiRegisterMsg()..

#include <GUIConstants.au3>

Global Const $WM_MBUTTONDOWN = 0x0207

GUICreate("My GUI")
GUISetState (@SW_SHOW)

GUIRegisterMsg($WM_MBUTTONDOWN, "WM_MBUTTONDOWN_FUNC")

While 1
    If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit
Wend
    
Func WM_MBUTTONDOWN_FUNC($hWnd, $Msg, $wParam, $lParam)
    ConsoleWrite("$WM_MBUTTONDOWN = 0x" & Hex($Msg, 4) & @LF)
    Return $GUI_RUNDEFMSG
EndFunc

Cheers

Hi @smashly! I know about this message, but it work only for window, not for controls. Need another solution... :) Edited by rasim
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...