03-11-2009, 07:04 PM
I'd like to be able to process messages from WindowProc function http://msdn.microsoft.com/en-us/library/...85%29.aspx, so I tried to piece together a function based on the AltMouseTriggers sample (which uses LowLevelMouseProc function). But it doesn't work. Any suggestions?
Function WinProcMessages
Function WinProcMessages
function [nCode] [wParam] [CWPSTRUCT*m]
if(getopt(nargs)=0)
int+ g_whook=SetWindowsHookEx(WH_CALLWNDPROC &WinProcMessages _hinst GetCurrentThreadId)
opt waitmsg 1
wait -1 -V g_whook
ret
sel m.message
case WM_LBUTTONDBLCLK
out "double"
case WM_MOVE
out "move"
case WM_SIZE
out "size"
ret CallNextHookEx(g_whook nCode wParam m)