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.