03-11-2009, 07:11 PM
it works. To test, I replaced wait to mes. It shows these messages received by the message box.
Function WinProcMessages
I tested on Vista. If does not work, try to replace _hinst to 0.
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
,mes 1
,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)I tested on Vista. If does not work, try to replace _hinst to 0.
