Shoutbox

Contacts on Desktop - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: Contacts on Desktop (/showthread.php?tid=72371)

Contacts on Desktop by Eddie on 03-06-2007 at 01:05 PM

Hey guys, is it possible to make an easier way of making the 'Contacts on Desktop' automatically not "Always on Top", because i HATE having to go through all of the ones i put on and un-ticking always on top.


RE: Contacts on Desktop by CookieRevised on 03-06-2007 at 01:26 PM

Please always state your version of Messenger Plus! you're using...

;)


RE: Contacts on Desktop by Eddie on 03-06-2007 at 01:38 PM

oh sorry Messenger Plus Live! 4.20.summin or other.


RE: Contacts on Desktop by CookieRevised on 03-06-2007 at 01:48 PM

in Messenger Plus! 3

1) Right Click on a floating desktop contact
2) Select "Change display settings"
3) Untick "Always on Top"
4) Right Click on the same floating desktop contact
5) Select "Change display settings"
6) Select "Set as Default..."

in Messenger Plus! Live

Not possible by selecting some options.
This might be a good suggestion for Patchou to include again.

It is possible by manipulating the registry directly though:
Enumerate all keys under HKCU\Software\Patchou\Messenger Plus! Live\<msn _id>\Contacts. For each found subkey set the DWORD value of FloatTopMost to 0.


RE: Contacts on Desktop by Eddie on 03-06-2007 at 01:49 PM

Can you help me out and direct me where to go to do this? :)


RE: Contacts on Desktop by CookieRevised on 03-06-2007 at 04:21 PM

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);
}

RE: Contacts on Desktop by Eddie on 03-07-2007 at 01:21 AM

Thanks i will test it out when i get home :)

EDIT: Thanks cookie that worked :)