02-19-2009, 10:45 AM
It works on my computer.
Function AltMouseTriggers2
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).
Function AltMouseTriggers2
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).
