Please Help ME..!! - 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: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Please Help ME..!! (/showthread.php?tid=76294)
Please Help ME..!! by real_cute_boy on 07-24-2007 at 10:07 AM
Hi people,
sorry if I'm going to bore you.. But i'm going to be crazy..
I want to use Enhancher scripts to permit my msn , to have on the tooltip area , near the icon of msn , my online list contacts.
So I try to modify , the code.. and as you can see i do this , exactly on the Preferences Area on the Save Settings:
******
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
var i;
var c;
i = 0;
var txxt = new Array();
var tx;
var tx2;
for(; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
if(Contact.Status != "1")
{
txxt[ i ] = Contact.Name;
i = i + 1;
}
}
c = i;
c = 0;
Shell.RegWrite(registry + "NotificationAreaTooltip","", 'REG_SZ');
while(c<i)
{
tx = txxt[ c ]
c = c + 1;
tx2 = Shell.RegRead(registry + "NotificationAreaTooltip") + tx + "\n";
Shell.RegWrite(registry + "NotificationAreaTooltip", tx2 , 'REG_SZ');
}
Debug.Trace(Shell.RegRead(registry + "NotificationAreaTooltip"));
Well , If try to show the debug windows.. I notice that with
the line
Debug.Trace(Shell.RegRead(registry + "NotificationAreaTooltip"));
I can see al the contacts , so it works.. But why at last, it doesn't write anything on the registry and aboveall in the tooltip doesn't appear nothing??
Can anyone help me..???
Thanks..
Ilario
RE: Please Help ME..!! by Deco on 07-24-2007 at 02:33 PM
Real_cute_boy,
Honestly I don't know where the tooltip information is stored and even if it is stored in the registry... the code below is just a cleaner/quicker version of your code with the proper registry address for the script's path in the registry and a proper declaring of the Shell object which wasn't declared in the code you sent. I'll leave it up to you to find where the tooltip info is found and correct the registry address.
code: function OnEvent_Initialize(MessengerStart)
{
var Shell = new ActiveXObject("WScript.Shell");
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
Shell.RegWrite(MsgPlus.ScriptRegPath + "NotificationAreaTooltip","", 'REG_SZ');
for(; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
if(Contact.Status != 1) {
Shell.RegWrite(MsgPlus.ScriptRegPath+ "NotificationAreaTooltip", Shell.RegRead(MsgPlus.ScriptRegPath+ "NotificationAreaTooltip") + Contact.Name + "\n", 'REG_SZ');
}
}
Debug.Trace(Shell.RegRead(MsgPlus.ScriptRegPath+ "NotificationAreaTooltip"));
}
Have fun!
RE: Please Help ME..!! by real_cute_boy on 07-25-2007 at 07:13 AM
The problem I suppose is that size of the tooltip..Maybe there is a limit for it... Well , I hope someone can help me about it , where I can find informations about tooltip , etc.?? And 'cause I'm here , I would like to know how is it possibile to change my msn skin.. There is a particular language or program for doing it? There are any guide??
Thanks a lot...
Ilario
RE: Please Help ME..!! by -dt- on 07-25-2007 at 07:27 AM
To change the tooltip you need to use Shell_NotifyIconW with the NOTIFYICONDATA structure
Shell_NotifyIcon msdn
NOTIFYICONDATA msdn
theres examples of this in the forums, just search
|