Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AltMouseTrigger help
#4
It works on my computer.
Function AltMouseTriggers2
Code:
Copy      Help
function [nCode] [wParam] [MSLLHOOKSTRUCT*m]
if(getopt(nargs)=0)
,int+ g_mhook=SetWindowsHookEx(WH_MOUSE_LL &AltMouseTriggers2 _hinst 0)
,opt waitmsg 1
,AddTrayIcon "mouse.ico" "My mouse triggers" ;;remove this line if tray icon is not needed
,wait -1 -V g_mhook
,ret

if(nCode<0) goto g1
if(m.flags&LLMHF_INJECTED) goto g1 ;;not user-generated

sel wParam
,case WM_MOUSEWHEEL
,if(m.mouseData>0) out "forward"
,else if(m.mouseData<0) out "backward"

;g1
ret CallNextHookEx(g_mhook nCode wParam m)

Try to debug. Look what is g_mhook. Look whether the function is called when you move the mouse (eg insert out 1 before if(nCode<0).


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)