What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Contact List Open/Close

Contact List Open/Close
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Contact List Open/Close
quote:
Originally posted by deAd
This uses the messenger api (as opening/closing is a function in it):

To open it:
code:
var MessengerAPI = new ActiveXObject('Messenger.UIAutomation.1');
var MessengerWnd = MessengerAPI.IMessengerWindow;
MessengerWnd = MessengerAPI.Window;
MessengerWnd.Show();

To close it:
code:
var MessengerAPI = new ActiveXObject('Messenger.UIAutomation.1');
var MessengerWnd = MessengerAPI.IMessengerWindow;
MessengerWnd = MessengerAPI.Window;
MessengerWnd.Close();

To toggle it (Window.IsClosed is a boolean that says if its closed or not ;)):
code:
var MessengerAPI = new ActiveXObject('Messenger.UIAutomation.1');
var MessengerWnd = MessengerAPI.IMessengerWindow;
MessengerWnd = MessengerAPI.Window;
if(MessengerWnd.IsClosed == true){
MessengerWnd.Show();
} else {
MessengerWnd.Close();
}

Ya you ever look at your processes before you run the code and afterwards? By using the Windows Messenger API you are causing Windows Messenger to run.
06-30-2006 10:52 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Contact List Open/Close - by TazDevil on 06-30-2006 at 10:04 PM
RE: Contact List Open/Close - by matty on 06-30-2006 at 10:16 PM
RE: RE: Contact List Open/Close - by TazDevil on 06-30-2006 at 10:22 PM
RE: Contact List Open/Close - by deAd on 06-30-2006 at 10:50 PM
RE: Contact List Open/Close - by matty on 06-30-2006 at 10:52 PM
RE: Contact List Open/Close - by TazDevil on 06-30-2006 at 10:55 PM
RE: Contact List Open/Close - by deAd on 06-30-2006 at 11:00 PM
RE: Contact List Open/Close - by matty on 06-30-2006 at 11:01 PM
RE: Contact List Open/Close - by deAd on 06-30-2006 at 11:28 PM
RE: Contact List Open/Close - by TazDevil on 07-03-2006 at 01:55 AM
RE: Contact List Open/Close - by matty on 07-03-2006 at 02:34 AM


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