What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » Contacts on Desktop

Contacts on Desktop
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Contacts on Desktop
This code will set all registry values for every existing contact, so they are on top (set bFloatOnTop to true) or not on top (set bFloatOnTop to false).

Note that this code needs to be executed each time you add new contacts to Messenger (if you're going to add them as a desktop contact), since Plus! always sets them on top by default.

This code also doesn't change the current window settings of the contact already on top.

In other words, run this code from a script and restart Messenger to get the full effect.

code:
var nKeyLocation = -2147483647 /* HKEY_CURRENT_USER */;
var sRegPath = "Software\\Patchou\\Messenger Plus! Live\\" + Messenger.MyEmail + "\\Contacts";
var bFloatOnTop = true;

// Uses WMI to enumerate registry subkeys and set a DWORD value
var oREG = new ActiveXObject("WbemScripting.SWbemLocator").ConnectServer(".", "root\\default").Get("StdRegProv");
var oMethod = oREG.Methods_.Item("EnumKey");
var oInParam = oMethod.InParameters.SpawnInstance_();
oInParam.hDefKey = nKeyLocation;
oInParam.sSubKeyName = sRegPath;
var aNames = oREG.ExecMethod_(oMethod.Name, oInParam).sNames.toArray();
for (i in aNames) {
    oREG.SetDWORDValue(nKeyLocation, sRegPath + "\\" + aNames[i], "FloatTopMost", bFloatOnTop ? 1 : 0);
}

This post was edited on 03-06-2007 at 04:21 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-06-2007 04:21 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Contacts on Desktop - by Eddie on 03-06-2007 at 01:05 PM
RE: Contacts on Desktop - by CookieRevised on 03-06-2007 at 01:26 PM
RE: Contacts on Desktop - by Eddie on 03-06-2007 at 01:38 PM
RE: Contacts on Desktop - by CookieRevised on 03-06-2007 at 01:48 PM
RE: Contacts on Desktop - by Eddie on 03-06-2007 at 01:49 PM
RE: Contacts on Desktop - by CookieRevised on 03-06-2007 at 04:21 PM
RE: Contacts on Desktop - by Eddie on 03-07-2007 at 01:21 AM


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