What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script that opens/closes/signs in/signs out Skype when I do the same in WLM

Script that opens/closes/signs in/signs out Skype when I do the same in WLM
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM
quote:
Originally posted by Voldemort
quote:
Originally posted by riahc4
If the WLM program is closed (process killed), Skype closes (Skype's process killed)
how will a process that isn't running anymore kill another process??
Indeed it can't.

But a Plus! script could attempt close Skype (never 'kill' a process to quite an application. That is bad practice) when the event
OnEvent_Uninitialize is fired and the MessengerExit parameter is set to true.

The same for starting Skype: use the event OnEvent_Initialize and check if MessengerStart is true.

quote:
Originally posted by Voldemort
quote:
Originally posted by riahc4
Sign out of WLM, it signs out of Skype.
IIRC, scripts are disabled after you log out... but I might be wrong.
Nope, scripts start running the moment you open Messenger (well, after all the initialization of Messenger and Plus! is done of course), and keep on running until you quit Messenger.

Logging in or out simply fires another event in the running scripts, it doesn't start or stop scripts.

So, those Signin and Signout events can be used to send an instructions to Skype to do the same thing (if Skype provides such a mechanism in the first place of course - dunno) occording to what user signs in or out in Messenger and what user is signed in in Skype.


- Messenger starts
- Plus! gets loaded
- All enabled scripts are started
=> for each script the OnEvent_Initialize event is fired with MessengerStart set to True.

...

- User logs in
=> for each script the OnEvent_Signin event is fired

- The whole logging in process completes
=> for each script the OnEvent_SigninReady event is fired

...

- User logs out
=> for each script the OnEvent_Signout event is fired

...

- User quits Messenger
=> for each script the OnEvent_Uninitialize event is fired with MessengerExit set to True.

- Plus! stops all running scripts
- Plus! unloads itself
- Messenger quits

This post was edited on 03-24-2010 at 12:44 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-24-2010 12:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by riahc4 on 03-24-2010 at 01:45 AM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by Voldemort on 03-24-2010 at 02:39 AM
RE: RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by CookieRevised on 03-24-2010 at 12:35 PM
RE: RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by riahc4 on 03-24-2010 at 10:48 PM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by Chris4 on 03-24-2010 at 02:53 AM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by Chrissy on 03-24-2010 at 11:05 PM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by riahc4 on 03-24-2010 at 11:29 PM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by Chrissy on 03-24-2010 at 11:55 PM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by andrey on 03-25-2010 at 12:23 AM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by CookieRevised on 03-25-2010 at 07:13 AM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by Veggie on 03-25-2010 at 11:16 AM
RE: Script that opens/closes/signs in/signs out Skype when I do the same in WLM - by Felu on 03-25-2010 at 02:24 PM


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