What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Extending a ChtWnd Object?

Extending a ChtWnd Object?
Author: Message:
Zero
Junior Member
**

Avatar

Posts: 29
– / Male / Flag
Joined: Aug 2008
O.P. Extending a ChtWnd Object?
Hi folks,

I wanna do something that seems like it'd be pretty simple, but I think I need an example of the syntax to get it right, assuming it can be done.

What I want is to add a variable to a Chat Window object so that it can be accessed something like "objChatWindow.myInteger = 1".

Can anyone provide me with an example of how to do that properly?
08-21-2008 02:33 PM
Profile E-Mail PM Web Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
34 / Male / Flag
Joined: Oct 2004
RE: Extending a ChtWnd Object?
Apparently you can't modify Messenger Plus objects as they are not actually objects, I believe Messenger Plus handles them in a different way (external to the rest of the JScript). Someone will probably be able to explain it better.
An alternative would be to use an array with the window handle as the index.
myInteger[objChatWindow.Handle] = 1;

This post was edited on 08-21-2008 at 02:50 PM by Volv.
08-21-2008 02:48 PM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Extending a ChtWnd Object?
You can only extend the javascript native objects (like String, Number, etc). I would recommend using an array as Volv said.
08-21-2008 02:52 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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