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

Locking
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Locking
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.

This post was edited on 03-25-2008 at 04:17 PM by matty.
03-25-2008 04:06 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Locking - by Phenic Raider on 03-25-2008 at 03:42 PM
RE: Locking - by matty on 03-25-2008 at 04:06 PM
RE: Locking - by Phenic Raider on 03-25-2008 at 05:40 PM


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