What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Autochange personal message depending on location

Autochange personal message depending on location
Author: Message:
svenax
New Member
*


Posts: 2
Joined: Oct 2004
O.P. Autochange personal message depending on location
Hallelujah! With the scripting support it is finally possible to automatically change the personal message (or name, for that matter) depending on where my laptop is, i.e depending on my current domain. I have wanted this feature for years.

Here's the script if anyone else is interested:
code:
function OnEvent_Initialize(MessengerStart)
{
    var PsmText = "In an unknown spot";
    var Shell = new ActiveXObject("WScript.Shell");
    var Domain = Shell.Environment("PROCESS").item("USERDOMAIN");

    if (Domain == "MYWORKDOMAIN")
        PsmText = "At work";
    else if (Domain == "MYHOMEDOMAIN")
        PsmText = "At home";

    Messenger.MyPersonalMessage = PsmText;
    MsgPlus.DisplayToast("", "PSM changed to '"+PsmText+"'");
}
06-30-2006 01:52 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