Contact List Open/Close |
Author: |
Message: |
TazDevil
Full Member
sleep(0);
Posts: 359 Reputation: 11
41 / /
Joined: May 2004
|
O.P. Contact List Open/Close
why arent there any Messneger.Open and .Close methods ???
edit
to open/close the contaclt list window as they are in the MessengerAPI com...
This post was edited on 06-30-2006 at 10:12 PM by TazDevil.
Window Manager is discontinued, for WLM try the new,
Enhancer for contact list docking, auto-hide, hide taskbar button, remove button flashing and remember keyboard layout in conversation windows
|
|
06-30-2006 10:04 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Contact List Open/Close
quote: Originally posted by MX-G
Because those methods arent 100% reliable
ex: when a contact minimize your Window Chat those methods tell you than he or she closed your window
To be blunt your post is way off. Thanks for coming out.
Taz means why isn't there an option within the Messenger object to Open or Close the Contact List.
Taz to be honest with you I was actually wondering the same thing. This would make your Windows Management Plugin so much easier. My suggestion would be to use the ShowWindow API and hide the window (SW_HIDE) and then show it (SW_SHOW) when needed, that is the only work around available for now until Patchou incorporates those if he does.
|
|
06-30-2006 10:16 PM |
|
|
TazDevil
Full Member
sleep(0);
Posts: 359 Reputation: 11
41 / /
Joined: May 2004
|
O.P. RE: RE: Contact List Open/Close
quote: Originally posted by Matty
Taz means why isn't there an option within the Messenger object to Open or Close the Contact List.
Taz to be honest with you I was actually wondering the same thing. This would make your Windows Management Plugin so much easier. My suggestion would be to use the ShowWindow API and hide the window (SW_HIDE) and then show it (SW_SHOW) when needed, that is the only work around available for now until Patchou incorporates those if he does.
The contact list is destroyed and re-created that is why the memory load hits the charts only when the contaclt list is open..
so SW_HIDE and SW_SHOW are useless if the contacltlist is closed initially and the fact that unnessecary memory load is reserved...
Window Manager is discontinued, for WLM try the new,
Enhancer for contact list docking, auto-hide, hide taskbar button, remove button flashing and remember keyboard layout in conversation windows
|
|
06-30-2006 10:22 PM |
|
|
deAd
Scripting Contest Winner
Posts: 1060 Reputation: 28
– / /
Joined: Jan 2006
|
RE: Contact List Open/Close
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();
}
This post was edited on 06-30-2006 at 10:50 PM by deAd.
|
|
06-30-2006 10:50 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
TazDevil
Full Member
sleep(0);
Posts: 359 Reputation: 11
41 / /
Joined: May 2004
|
O.P. RE: Contact List Open/Close
yeah i already thought of that and it has the implication Matty said, Window Messanger is required and runs automatically in a hidden state...
Window Manager is discontinued, for WLM try the new,
Enhancer for contact list docking, auto-hide, hide taskbar button, remove button flashing and remember keyboard layout in conversation windows
|
|
06-30-2006 10:55 PM |
|
|
deAd
Scripting Contest Winner
Posts: 1060 Reputation: 28
– / /
Joined: Jan 2006
|
RE: Contact List Open/Close
Really? *looks at processes* I'm not seeing it what's the process name?
Also, if you declare it once in initialize, then delete it on uninitialize, its fine :/ but I've never had any problems with it at all..
|
|
06-30-2006 11:00 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Contact List Open/Close
quote: Originally posted by deAd
Really? *looks at processes* I'm not seeing it what's the process name?
Also, if you declare it once in initialize, then delete it on uninitialize, its fine :/ but I've never had any problems with it at all..
msmsgs.exe
No once the processes is launched it stays no matter if it is removed. The process has to be ended manually.
|
|
06-30-2006 11:01 PM |
|
|
deAd
Scripting Contest Winner
Posts: 1060 Reputation: 28
– / /
Joined: Jan 2006
|
RE: Contact List Open/Close
This post was edited on 06-30-2006 at 11:31 PM by deAd.
|
|
06-30-2006 11:28 PM |
|
|
TazDevil
Full Member
sleep(0);
Posts: 359 Reputation: 11
41 / /
Joined: May 2004
|
O.P. RE: Contact List Open/Close
So i guess no-one else is interested in the API method...
Tooo bad...
Window Manager is discontinued, for WLM try the new,
Enhancer for contact list docking, auto-hide, hide taskbar button, remove button flashing and remember keyboard layout in conversation windows
|
|
07-03-2006 01:55 AM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|