Shoutbox

Help on Closing the ChatWindow - 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 on Closing the ChatWindow (/showthread.php?tid=64892)

Help on Closing the ChatWindow by garukun on 08-14-2006 at 07:25 AM

I'm not so familiar with JScripting or ActiveXObjects, but I think I should be able to do this.

Basically, I want to have a script that auto sends a message to a contact and without me noticing that the chat was being sent.

One way i thought of was to opne chat window, send the message, and then close it. I don't seem to be able to do the last thing as there is no such command in the documentation.

A lil help on this? Thanks very much!


RE: Help on Closing the ChatWindow by Matti on 08-14-2006 at 07:49 AM

It's very easy to do so. Just add this code after the ChatWindow.SendMessage() call which you used to send the text:

code:
ChatWindow.SendMessage("/close");
This will send the Plus! command /close, which closes the window. No need for Plus! Live script functions, and it's far more easy! :D
RE: Help on Closing the ChatWindow by garukun on 08-14-2006 at 07:54 AM

oh, haha, I can't be more stupid than that~
Thanks thanks!