Shoutbox

Hooking messages - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Hooking messages (/showthread.php?tid=80797)

Hooking messages by SmokingCookie on 01-08-2008 at 06:09 PM

Hi,

Can somebody explain how to hook messages into Plus windows?
The scripting documentation doesn't explain it in a way I understand :S..

Thanks in advance..


RE: Hooking messages by Spunky on 01-08-2008 at 06:17 PM

Here is a working example posted by Mattike

code:
var WM_DROPFILES = 0x233;

function OnEvent_Initialize() {
  // [...] Removed Code
   Wnd.RegisterMessageNotification(WM_DROPFILES, true);
}


Obviously, you will need to replace the value of WM_DROPFILES with the hex number relevant to the message you want to hook.

The scripting documents explain how to use the OnWindowidEvent_MessageNotification event
RE: Hooking messages by SmokingCookie on 01-08-2008 at 06:20 PM

Well, that's MUCH better than the documentation ;)

Tnx