Shoutbox

opening and closing - 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: opening and closing (/showthread.php?tid=84461)

opening and closing by zogo on 06-22-2008 at 10:34 AM

is there a code to open and close the chat ???

if so can i have them separatly...


RE: opening and closing by roflmao456 on 06-22-2008 at 01:52 PM

to open a conversation window with someone:

code:
Messenger.OpenChat("email@provider.com");
and to close it, you need to get the handle of the chat window and then send the WM_CLOSE message to the window:
code:
var WM_CLOSE = 0x0010;
Interop.Call("user32", "SendMessageW", hWnd, WM_CLOSE, 0, 0);

RE: opening and closing by zogo on 06-22-2008 at 02:24 PM

thx 1 more thing how can u tell who your talking to in the window using a script??


RE: opening and closing by Matti on 06-22-2008 at 02:39 PM

It's all documented in the Scripting Documentation!
Go check out the page for Objects Reference > ChatWnd Object > Properties > Contacts.

I recommend you to search a bit before posting a new topic. This kind of questions have been answered many times before! ;)


RE: opening and closing by zogo on 06-22-2008 at 03:01 PM

i cant view it i get the ie error 404 page when i try and view it


RE: opening and closing by Matti on 06-22-2008 at 03:11 PM

Err? Where are you looking for your scripting documentation? Are you talking about an online version of the documentation?

Normally you should have downloaded it from this page. Unzip it and open the file, and there you have the complete documentation. :)


RE: opening and closing by zogo on 06-22-2008 at 03:58 PM

i cant unzip it asks me to try again and if i run it i get a error 404 in the window to the right of the tree


RE: opening and closing by roflmao456 on 06-22-2008 at 05:03 PM

try http://www.mpscripts.net/docs
or Patchou's reply to Skinning Documentation