What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Skype & Live Messenger » PSM Media types

PSM Media types
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
O.P. PSM Media types
I am wondering what the media types are that can be displayed in the PSM.
I know there is 'Music' for when you have music playing. I believe there is also icons for Office and games, any more? How are they triggered?
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
08-05-2007 09:10 PM
Profile PM Web Find Quote Report
LifelesS
Full Member
***


Posts: 115
Reputation: 4
31 / Male / Flag
Joined: Dec 2006
RE: PSM Media types
I think you can, you made me curious too, so I went to check the AppMon+ source code. the secret is here I think:

this was made by -dt-

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;
   
    //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");
    Debug.Trace(song.ReadString(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);


}

mainly after //Send it to all open messengers, though I haven't quite figure out everything... try it yourself :)


shouldn't the thread be moved to scripts?
Best Regards,
Joćo Godinho
08-05-2007 10:16 PM
Profile E-Mail PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. RE: PSM Media types
quote:
Originally posted by LifelesS
shouldn't the thread be moved to scripts?
who said anything about scripts? i was just asking about WLM functionality, but that snippet does clear up some questions for me.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
08-05-2007 11:43 PM
Profile PM Web Find Quote Report
LifelesS
Full Member
***


Posts: 115
Reputation: 4
31 / Male / Flag
Joined: Dec 2006
RE: RE: PSM Media types
quote:
Originally posted by MeEtc
quote:
Originally posted by LifelesS
shouldn't the thread be moved to scripts?
who said anything about scripts? i was just asking about WLM functionality, but that snippet does clear up some questions for me.


My bad... Sorry, I said it because you can change it with a script... :)
Best Regards,
Joćo Godinho
08-05-2007 11:46 PM
Profile E-Mail PM Find Quote Report
« 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