The problem with this:
quote:
Originally posted by SmokingCookie
code:
Debug.Trace("> Got message \"" + wMessage + "\" with wParam \"" + wParam + "\" and lParam \"" + lParam + "\"");
Is that you aren't defining any messages to watch. And your \ should be \\. Check the code below to get an idea:
code:
function OnEvent_Initialize(MessengerStart) {
WndMain = MsgPlus.CreateWnd("Windows.xml","WndMain",1);
WndMain.RegisterMessageNotification(0x200 /* WM_MOUSEMOVE */)
}
function OnWndMainEvent_MessageNotification(PlusWnd,wMessage,wParam,lParam) {
switch(nMessage){
case 0x200 /* WM_MOUSEMOVE */:
// do stuff here
break;
}
}