dearmb 发表于 2014-3-19 23:17:38

HotKeySet能否设置鼠标右键作为热键?

HotKeySet能否设置鼠标右键作为热键?

水木子 发表于 2014-3-20 13:57:31

Global Const $WM_RBUTTONDOWN = 0x0204
GUIRegisterMsg($WM_RBUTTONDOWN, 'MyFunc')

GUICreate('MyTest')
GUISetState()

Do
Until GUIGetMsg() = -3

Func MyFunc($HWnd, $iMsg, $wParam, $lParam)
        MsgBox(0, $lParam, '按下鼠标右键,按键值 = ' & BitAND($wParam, 0xFF))
EndFunc   ;==>MyFunc
页: [1]
查看完整版本: HotKeySet能否设置鼠标右键作为热键?