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

Help needed with showing my own element under personal message
Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / 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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help needed with showing my own element under personal message - by sayed on 02-12-2011 at 12:28 PM
RE: Help needed with showing my own element under personal message - by matty on 02-12-2011 at 12:38 PM
RE: Help needed with showing my own element under personal message - by mynetx on 02-12-2011 at 12:40 PM
RE: Help needed with showing my own element under personal message - by sayed on 02-12-2011 at 12:45 PM
RE: Help needed with showing my own element under personal message - by whiz on 02-12-2011 at 12:47 PM
RE: Help needed with showing my own element under personal message - by sayed on 02-12-2011 at 12:52 PM
RE: Help needed with showing my own element under personal message - by matty on 02-12-2011 at 01:00 PM
RE: Help needed with showing my own element under personal message - by sayed on 02-12-2011 at 01:02 PM
RE: Help needed with showing my own element under personal message - by mynetx on 02-12-2011 at 01:03 PM
RE: Help needed with showing my own element under personal message - by matty on 02-12-2011 at 01:05 PM
RE: Help needed with showing my own element under personal message - by sayed on 02-12-2011 at 01:48 PM
RE: Help needed with showing my own element under personal message - by mynetx on 02-12-2011 at 01:53 PM
RE: Help needed with showing my own element under personal message - by sayed on 02-12-2011 at 01:58 PM
RE: Help needed with showing my own element under personal message - by whiz on 02-12-2011 at 02:27 PM
RE: Help needed with showing my own element under personal message - by matty on 02-12-2011 at 02:27 PM
RE: Help needed with showing my own element under personal message - by sayed on 02-12-2011 at 02:45 PM
RE: Help needed with showing my own element under personal message - by matty on 02-12-2011 at 02:51 PM


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