What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » COM Events

COM Events
Author: Message:
omahena
New Member
*


Posts: 3
48 / Male / –
Joined: Jan 2007
O.P. Huh?  COM Events
Hi guys,

I have been looking for a way to register my script to handle events fired by a COM object.

In HTML JavaScript this is quite simple and there are many ways to do this. I expected that something like this would work:

code:
var SomeObject = new ActiveXObject("AppID.ClsID");
SomeObject.OnSomeEvent = EventHandlerFunc;

...

function EventHandlerFunc(EvtParam1)
{
}


but that doesn't work. I also tried using the GetRef function and some other methods. This article seemed to give some good pointers. Maybe this will inspire somebody.

http://msdn2.microsoft.com/en-us/library/ms974564.aspx

I think out of all the methods the ConnectObject() function seems the right way to go. I have a feeling that something similar is used for MsgPlus events due to the automagic-like function names. The bummer is that I cannot find a way to call this function.

Any ideas? :|
01-16-2007 09:30 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
COM Events - by omahena on 01-16-2007 at 09:30 PM
RE: COM Events - by omahena on 01-16-2007 at 10:19 PM
RE: COM Events - by deAd on 01-16-2007 at 10:55 PM
RE: COM Events - by omahena on 01-16-2007 at 11:11 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On