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

Locking
Author: Message:
Phenic Raider
Junior Member
**


Posts: 65
34 / Male / Flag
Joined: Feb 2008
O.P. Locking
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?
[IMG]http://i107.photobucket.com/albums/m315/chopp
ork/TSA.png[/IMG]
03-25-2008 03:42 PM
Profile E-Mail PM Web Find Quote Report
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
Phenic Raider
Junior Member
**


Posts: 65
34 / Male / Flag
Joined: Feb 2008
O.P. RE: Locking
Shit, cheers dude. = ]

Added you to msn. Don't have to accept it if you don't want, just wanna talk about shit.
[IMG]http://i107.photobucket.com/albums/m315/chopp
ork/TSA.png[/IMG]
03-25-2008 05:40 PM
Profile E-Mail PM Web Find Quote Report
« 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