What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Lock messenger not at sign-in but when started

[Request] Lock messenger not at sign-in but when started
Author: Message:
Zayl
Junior Member
**


Posts: 27
Joined: Jun 2006
O.P. [Request] Lock messenger not at sign-in but when started
Hello,
There is already I script that locks Messenger when you sign-in and you have to click on "Click here to continue using Messenger" but on my computer, Messenger is on start-up but doesnt sign-in automatically on my session...
So I wondered if someone could do a script that locks Messenger "x" seconds after started at windows...
Or... even when Messenger is not at start-up, to lock Messenger when someone (or me) runs it by clicking on shortcut.

Thanks a lot =)
08-02-2006 11:02 PM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [Request] Lock messenger not at sign-in but when started
I don't think this can be done.  Although script are global (all of them can be seen no matter which windows account or live id you are using) they're setting (on/off) is customisable and therefore will not be able to start until you sign-in.  This is also the same with changing preferences of MP!L.
[Image: markee.png]
08-03-2006 05:56 AM
Profile PM Find Quote Report
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
RE: [Request] Lock messenger not at sign-in but when started
quote:
Originally posted by markee
I don't think this can be done.  Although script are global (all of them can be seen no matter which windows account or live id you are using) they're setting (on/off) is customisable and therefore will not be able to start until you sign-in.  This is also the same with changing preferences of MP!L.

No, scripts start when messenger starts, not when you sign in. That's why there's a Signin event and a Initialize Event, and is also the prime reason why some scripts mess up because they try to use the Messenger.MyEmail property under the Initialize Event.

Sorry if this is not what you were taking about.
[Image: clb2.jpg]
08-03-2006 06:03 AM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [Request] Lock messenger not at sign-in but when started
quote:
Originally posted by cooldude_i06
quote:
Originally posted by markee
I don't think this can be done.  Although script are global (all of them can be seen no matter which windows account or live id you are using) they're setting (on/off) is customisable and therefore will not be able to start until you sign-in.  This is also the same with changing preferences of MP!L.

No, scripts start when messenger starts, not when you sign in. That's why there's a Signin event and a Initialize Event, and is also the prime reason why some scripts mess up because they try to use the Messenger.MyEmail property under the Initialize Event.

Sorry if this is not what you were taking about.
Ok thanks for clearing that up for me.  I wrote this script for you that atm will automatically lock messenger after a minuteif you aren't signed in withing that time, or are already signed in before the script starts.  At least it was half of what you were after.

code:
var lock = "lock";
function OnEvent_Initialize(MessengerStart)
{
  MsgPlus.AddTimer("Start",60000)//change to length to wait until lock (in milliseconds)
}
function OnEvent_Signin(Email)
{
  lock = ""
}
function OnEvent_Timer(TimerId)
{
  if (TimerId == "Start")
  {
    if (lock == "lock")
    {
      MsgPlus.LockMessenger(true);
    }
  }
}
[Image: markee.png]
08-03-2006 06:26 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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