What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - ChatWnd not an object?

HELP - ChatWnd not an object?
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. HELP - ChatWnd not an object?
Look, I know I keep asking questions, but I just don't understand this.

Plus! Mini-Messenger is a tool to run a one-to-one conversation with another script user, through the P!MM interface.  It allows you to send messages, and alert the other user.

It works by sending "!pmm" commands, and whilst the script is active and connected to another user, the conversation windows with that contact auto-close.

The problem I have is that when I tell the script to open a conversation with "user" (variable storing the email of the connected user), it does nothing, and the Script Debugger states "UserCWnd" (variable storing the creation of the ChatWnd) is null or not an object.

Can someone explain where I have gone wrong.  I have attached the script below.

.plsc File Attachment: Plus! Mini-Messenger.plsc (16.93 KB)
This file has been downloaded 113 time(s).

This post was edited on 03-05-2009 at 08:27 PM by whiz.
03-04-2009 09:38 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: HELP - ChatWnd not an object?
Well the first thing is that when  you click Accept the RemoteUser variable has a space before the email...
js code:
RemoteUser = Message.substr(Parameter[1].length+2);

You need to debug your code this was quite simple to see...
03-05-2009 12:49 AM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - ChatWnd not an object?
Well, I have changed that bit, and fixed a few other things, before testing it with a friend.  The problem is that, even with the exact same script, it only works one way, and it's the same way, no matter who invited who.  Can anyone find why?

.plsc File Attachment: Plus! Mini-Messenger.plsc (16.93 KB)
This file has been downloaded 75 time(s).
03-05-2009 08:26 PM
Profile E-Mail 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