What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help needed with showing my own element under personal message

Pages: (2): « First [ 1 ] 2 » Last »
Help needed with showing my own element under personal message
Author: Message:
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. Help needed with showing my own element under personal message
Hello all,

I need help with showing my own element under the personal message,
like this image:

[Image: DownloadManager.png?DocumentID=7865]

I want to put my own text, how ??

Please help me fast. :$

And thanks in advance
02-12-2011 12:28 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help needed with showing my own element under personal message
Do you mean you want to show the current song you playing? Or you just want to add some text?
02-12-2011 12:38 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: Help needed with showing my own element under personal message
JScript code:
function setNowPlaying(enabled, type, format, title, artist, album, contentID) {
    if (typeof(type) == "undefined") type = "Music";
    if (typeof(format) == "undefined") format = "";
    if (typeof(title) == "undefined") title = "";
    if (typeof(artist) == "undefined") artist = "";
    if (typeof(album) == "undefined") album = "";
    if (typeof(contentID) == "undefined") contentID = "";
    enabled = Math.abs(enabled);
    var WM_COPYDATA = 0x4A;
    var song = Interop.Allocate(512);
    song.WriteString(0, "\\0" + type + "\\0" + enabled + "\\0" + format + "\\0" + title + "\\0" + artist + "\\0" + album + "\\0" + contentID + "\\0");
    var copyDataStruct = Interop.Allocate(12);
    copyDataStruct.WriteDWORD(0, 0x547);
    copyDataStruct.WriteDWORD(4, song.Size);
    copyDataStruct.WriteDWORD(8, song.DataPtr);
    var hMSGRUI = 0;
    do {
        hMSGRUI = Interop.Call("User32", "FindWindowExW", 0, hMSGRUI, "MsnMsgrUIManager", 0);
        if (hMSGRUI > 0) {
            Interop.Call("User32", "SendMessageW", hMSGRUI, WM_COPYDATA, 0, copyDataStruct)
        }
    } while ( hMSGRUI != 0 )
}
 
// for showing:
setNowPlaying(true, "Music", "{0} - {1}", "Break Your Heart", "Taio Cruz Fr. Ludacris", "Album Name"); 
// for hiding:
setNowPlaying(false);

mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
02-12-2011 12:40 PM
Profile E-Mail PM Web Find Quote Report
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: Help needed with showing my own element under personal message
quote:
Originally posted by matty
Do you mean you want to show the current song you playing? Or you just want to add some text?
No, I want to put my own text using code...
quote:
Originally posted by mynetx
JScript code:
function setNowPlaying(enabled, type, format, title, artist, album, contentID) {
    if (typeof(type) == "undefined") type = "Music";
    if (typeof(format) == "undefined") format = "";
    if (typeof(title) == "undefined") title = "";
    if (typeof(artist) == "undefined") artist = "";
    if (typeof(album) == "undefined") album = "";
    if (typeof(contentID) == "undefined") contentID = "";
    enabled = Math.abs(enabled);
    var WM_COPYDATA = 0x4A;
    var song = Interop.Allocate(512);
    song.WriteString(0, "\\0" + type + "\\0" + enabled + "\\0" + format + "\\0" + title + "\\0" + artist + "\\0" + album + "\\0" + contentID + "\\0");
    var copyDataStruct = Interop.Allocate(12);
    copyDataStruct.WriteDWORD(0, 0x547);
    copyDataStruct.WriteDWORD(4, song.Size);
    copyDataStruct.WriteDWORD(8, song.DataPtr);
    var hMSGRUI = 0;
    do {
        hMSGRUI = Interop.Call("User32", "FindWindowExW", 0, hMSGRUI, "MsnMsgrUIManager", 0);
        if (hMSGRUI > 0) {
            Interop.Call("User32", "SendMessageW", hMSGRUI, WM_COPYDATA, 0, copyDataStruct)
        }
    } while ( hMSGRUI != 0 )
}
 
// for showing:
setNowPlaying(true, "Music", "{0} - {1}", "Break Your Heart", "Taio Cruz Fr. Ludacris", "Album Name"); 
// for hiding:
setNowPlaying(false);


I don't want to show the song I'm playing...
02-12-2011 12:45 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
RE: Help needed with showing my own element under personal message
If you just want to show text, can't you just use the personal message box?
02-12-2011 12:47 PM
Profile E-Mail PM Find Quote Report
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: Help needed with showing my own element under personal message
quote:
Originally posted by whiz
If you just want to show text, can't you just use the personal message box?
No, I wanna show a text from code under the personal message as I said before..
02-12-2011 12:52 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help needed with showing my own element under personal message
So you are trying to create a brand new element on the contact list window? Not possible.
02-12-2011 01:00 PM
Profile E-Mail PM Find Quote Report
sayed
Junior Member
**


Posts: 17
Joined: Jan 2010
O.P. RE: Help needed with showing my own element under personal message
quote:
Originally posted by matty
So you are trying to create a brand new element on the contact list window? Not possible.
Yes, but why not? How that script in the picture does ?!!
02-12-2011 01:02 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: Help needed with showing my own element under personal message
quote:
Originally posted by sayed
How that script in the picture does ?
The script shows a currently playing song, with a function similar to mine above. So, it is not inserting a new field.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
02-12-2011 01:03 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: Help needed with showing my own element under personal message
Well that script isn't adding anything new. They have the user's Nick Name, the user's Personal Message and the user's Media Message... no new elements are being added.
02-12-2011 01:05 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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