Shoutbox

HELP - ChatWnd not an object? - 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: HELP - ChatWnd not an object? (/showthread.php?tid=89500)

HELP - ChatWnd not an object? by whiz on 03-04-2009 at 09:38 PM

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.


RE: HELP - ChatWnd not an object? by matty on 03-05-2009 at 12:49 AM

Well the first thing is that when  you click Accept the RemoteUser variable has a space before the email...

Javascript code:
RemoteUser = Message.substr(Parameter[1].length+2);


You need to debug your code this was quite simple to see...
RE: HELP - ChatWnd not an object? by whiz on 03-05-2009 at 08:26 PM

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?