What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » Could someone point me to...

Could someone point me to...
Author: Message:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Could someone point me to...
Here's the code from Appmon+ that sets the current media message. Looks like it came from the Now Playing script
code:
// Function by -dt-
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;
   
    //reference
    var song = Interop.Allocate(512);
   
    //change the Music thing to Games or Office or
    song.WriteString(0, "\\0" + type + "\\0" + enabled + "\\0" + format +"\\0" + title +"\\0" + artist + "\\0" + album + "\\0" + contentID + "\\0");
   
   
    //write our copyDataStruct Structure
    var copyDataStruct = Interop.Allocate(12);
    copyDataStruct.WriteDWORD(0, 0x547); //dwData
    copyDataStruct.WriteDWORD(4, song.Size); //cbData
    copyDataStruct.WriteDWORD(8, song.DataPtr);  //lpData
   
   
    //Send it to all open messengers
    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);


}

[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
01-27-2008 11:27 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Could someone point me to... - by Clarkooo.1 on 01-27-2008 at 08:56 PM
RE: Could someone point me to... - by ShawnZ on 01-27-2008 at 09:01 PM
RE: Could someone point me to... - by Clarkooo.1 on 01-27-2008 at 09:04 PM
RE: Could someone point me to... - by ShawnZ on 01-27-2008 at 10:15 PM
RE: Could someone point me to... - by Clarkooo.1 on 01-27-2008 at 10:29 PM
RE: Could someone point me to... - by MeEtc on 01-27-2008 at 10:31 PM
RE: Could someone point me to... - by Clarkooo.1 on 01-27-2008 at 10:37 PM
RE: Could someone point me to... - by MeEtc on 01-27-2008 at 10:46 PM
RE: Could someone point me to... - by Clarkooo.1 on 01-27-2008 at 10:54 PM
RE: Could someone point me to... - by ShawnZ on 01-27-2008 at 11:00 PM
RE: Could someone point me to... - by Clarkooo.1 on 01-27-2008 at 11:04 PM
RE: Could someone point me to... - by Clarkooo.1 on 01-27-2008 at 11:09 PM
RE: Could someone point me to... - by MeEtc on 01-27-2008 at 11:27 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