Shoutbox

Locking - 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: Locking (/showthread.php?tid=82645)

Locking by Phenic Raider on 03-25-2008 at 03:42 PM

Hey all. Back again. I really should learn to code, what codes are needed to script? Java Scripting?

Anyways;
Was wondering is it/would it be possible to have a script to lock msn after being idle and/or away for a certain ammount of time?


RE: Locking by matty on 03-25-2008 at 04:06 PM

quote:
Originally posted by Phenic Raider
Hey all. Back again. I really should learn to code, what codes are needed to script? Java Scripting?

Anyways;
Was wondering is it/would it be possible to have a script to lock msn after being idle and/or away for a certain ammount of time?

JScript is needed to code in pure plus! scripting.
Yeah sure would be possible.

without testing you are probably looking at something like this:

code:
var iDelay = 2 /* minutes */ * (60000 /* 1 minute */);

function OnEvent_MyStatusChange(nStatus) {
    if (nStatus === STATUS_AWAY || nStatus === STATUS_IDLE) MsgPlus.AddTimer('lockme', iDelay)
    else MsgPlus.CancelTimer('lockme');
}

function OnEvent_Timer(TimerId) { MsgPlus.LockMessenger(true) }


Don't try it once it locks WLM you are screwed if you have a short timer. You need to change your status to like Busy when you come out of messenger lock.
RE: Locking by Phenic Raider on 03-25-2008 at 05:40 PM

Shit, cheers dude. = ]

Added you to msn. Don't have to accept it if you don't want, just wanna talk about shit.