Script about lock messenger - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Script about lock messenger (/showthread.php?tid=69434) Script about lock messenger by xsuper on 12-13-2006 at 01:04 AM
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. RE: Script about lock messenger by Rolando on 12-13-2006 at 01:18 AM 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? RE: Script about lock messenger by markee on 12-13-2006 at 01:27 AM What about not automatically signing in and not storing your password? It will do the same thing and not require a script. RE: Script about lock messenger by Spunky on 12-13-2006 at 02:10 AM Could be useful if he wants to hide the fact that WLM is open though... RE: Script about lock messenger by CookieRevised on 12-13-2006 at 02:18 AM
See/read the Official Scripting Documentation: code: EDIT: fixed code... sorry Patchou * CookieRevised runs together with markee RE: Script about lock messenger by deAd on 12-13-2006 at 03:11 AM Cookie, why do you use the === operator as opposed to ==? What difference does it make in this case? RE: Script about lock messenger by CookieRevised on 12-13-2006 at 03:18 AM
quote:=== 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. RE: Script about lock messenger by Patchou on 12-13-2006 at 06:00 AM
the proper call is code: or am I missing a subtility of JScript? RE: RE: Script about lock messenger by markee on 12-13-2006 at 06:14 AM
quote: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: Learning a few small things might help you become a good coder one day * markee runs very fast RE: Script about lock messenger by Patchou on 12-13-2006 at 06:24 AM
errr... well, I'm either very tired and unable to read the documentation I wrote myself, or you should open it yourself RE: Script about lock messenger by markee on 12-13-2006 at 06:34 AM
quote:My bad, I think the one and only time I used it I got confused with it too because most things that are defined by a boolean variable are properties and are read/write. BTW, i did have it open already, I was just too lazy to take a look. RE: Script about lock messenger by foaly on 12-13-2006 at 02:13 PM
quote:why not remove the lock at the same time... code:that would prompt you the password window... RE: RE: Script about lock messenger by markee on 12-13-2006 at 04:50 PM
quote:The only reason you would want it to go into lock is for it to not be able to be seen, otherwise you are better off just not having autosign-in and your password not being saved. |