What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script about lock messenger

Pages: (2): « First [ 1 ] 2 » Last »
Script about lock messenger
Author: Message:
xsuper
New Member
*


Posts: 7
Joined: Aug 2006
O.P. Script about lock messenger
I was wondering if it was possible to make a script that locks WLM as soon as it signs me in, it would be useful for those of us that shares computers.

Thanks in advance!
12-13-2006 01:04 AM
Profile E-Mail PM Find Quote Report
Rolando
Veteran Member
*****

Avatar
Santasend

Posts: 1325
Reputation: 52
32 / Male / Flag
Joined: Feb 2006
RE: Script about lock messenger
I guess it can be done, but I don't really see the point on doing it. Can't you put control+s (or something) as your Anti-boss shortcut, and click it when it signs-in?
[Image: sigxmascopy.png]
12-13-2006 01:18 AM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
34 / Male / Flag
Joined: Jan 2006
RE: Script about lock messenger
What about not automatically signing in and not storing your password?  It will do the same thing and not require a script.
[Image: markee.png]
12-13-2006 01:27 AM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
34 / Male / Flag
Joined: Aug 2006
RE: Script about lock messenger
Could be useful if he wants to hide the fact that WLM is open though...
<Eljay> "Problems encountered: shit blew up" :zippy:
12-13-2006 02:10 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Script about lock messenger
See/read the Official Scripting Documentation:

OnEvent_Signin
and
MsgPlus::LockMessenger

and you have all what is needed to make this extremely short script.

code:
function OnEvent_Signin(sEmail) {
    if (sEmail === 'mymail@mail.com') MsgPlus.LockMessenger(true);
}


;)


EDIT: fixed code... sorry Patchou :$
* CookieRevised runs together with markee :D

This post was edited on 12-13-2006 at 07:28 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-13-2006 02:18 AM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Script about lock messenger
Cookie, why do you use the === operator as opposed to ==? What difference does it make in this case?
12-13-2006 03:11 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Script about lock messenger
quote:
Originally posted by deAd
Cookie, why do you use the === operator as opposed to ==? What difference does it make in this case?
=== and !== are identity operators.
== and != are equality operators.

It is preferred to use identity operators as this gives you a warning with wrong type casting and it is faster because JScript doesn't need to convert the variables first to the same type. It also reduces possible errors you otherwise might not notice so quickly.

The identity operators (=== and !==) compare the content of the variables.
The equality operators (== and !=) compare the content of the variables and the type by first converting the variables to a general type.

Moral:

Always use the identity operators (=== and !==)  when you compare two variables of the same type. eg: when comparing strings or characters.

Thus always use the identity operators (=== and !==) whenever you can and only use equality operators (== and !=) if you really really need to.


for details, see:
CookieRevised's reply to Nudges, Updated.
CookieRevised's reply to How do I declare this?

eg:
if you compare two variables of the same type, like a string with a string, like in the script example in my previous post, it makes much better sense to use the identity operator (===) than the equality operator (==) because you know both variables are strings.

eg:
"5" == 5 is true, eventhough one is a string type and the other is a number.
"5" === 5 is false, since they are not of the same type.

This post was edited on 03-03-2010 at 03:30 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-13-2006 03:18 AM
Profile PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
41 / Male / Flag
Joined: Apr 2002
RE: Script about lock messenger
the proper call is
code:
MsgPlus.LockMessenger(true);

or am I missing a subtility of JScript?
[Image: signature2.gif]
12-13-2006 06:00 AM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
34 / Male / Flag
Joined: Jan 2006
RE: RE: Script about lock messenger
quote:
Originally posted by Patchou
the proper call is
code:
MsgPlus.LockMessenger(true);

or am I missing a subtility of JScript?

I think you are missing something in JScript.  MsgPlus.LockMessenger is a property so it has no brackets at all and you asign it by the likes of

code:
MsgPlus.LockMessenger = true;

Learning a few small things might help you become a good coder one day ;)

* markee runs very fast

This post was edited on 12-13-2006 at 06:14 AM by markee.
[Image: markee.png]
12-13-2006 06:14 AM
Profile PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
41 / Male / Flag
Joined: Apr 2002
RE: Script about lock messenger
errr... well, I'm either very tired and unable to read the documentation I wrote myself, or you should open it yourself :p

LockMessenger() is a function :)

This post was edited on 12-13-2006 at 06:25 AM by Patchou.
[Image: signature2.gif]
12-13-2006 06:24 AM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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