Shoutbox

Could someone point me to... - 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: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: Could someone point me to... (/showthread.php?tid=81260)

Could someone point me to... by Clarkooo.1 on 01-27-2008 at 08:56 PM

...the key in the registry in which the personal message information is held so I can put in IRC style codes to colour my current set media?

I know I could use the Now Playing script for this but it only works with WMP and my default music player is iTunes.

Regards :D


RE: Could someone point me to... by ShawnZ on 01-27-2008 at 09:01 PM

1) your current media isn't set to your personal message. your personal message is just ignored when a song is playing.

2) your personal message isn't stored in the registry.


RE: Could someone point me to... by Clarkooo.1 on 01-27-2008 at 09:04 PM

How does the now playing script allow current set media to have font attributes then?

Point me to where I can insert IRC codes to add font attributes to my current set media please.

Thanks


RE: Could someone point me to... by ShawnZ on 01-27-2008 at 10:15 PM

just edit your psm and put in whatever codes you want?


RE: Could someone point me to... by Clarkooo.1 on 01-27-2008 at 10:29 PM

Yeh but Im on about the current set media..not my personal msg?


RE: Could someone point me to... by MeEtc on 01-27-2008 at 10:31 PM

both the media ad personal message exist in memory only, and not as a value written to the registry.
the only way you can access these values is by reading Messenger.MyPersonalMessage and Messenger.MyCurrentMedia


RE: Could someone point me to... by Clarkooo.1 on 01-27-2008 at 10:37 PM

and how do I read/edit those values?


RE: Could someone point me to... by MeEtc on 01-27-2008 at 10:46 PM

Messenger.MyPersonalMessage can just be assigned a value.  as in Messenger.MyPersonalMessage = "foobar"

MyCurrentMedia is readonly.


RE: Could someone point me to... by Clarkooo.1 on 01-27-2008 at 10:54 PM

how does the now playing script allow people to apply font attributes to their current set media??


RE: Could someone point me to... by ShawnZ on 01-27-2008 at 11:00 PM

quote:
Originally posted by Clarkooo.1
how does the now playing script allow people to apply font attributes to their current set media??

it doesn't, the now playing script just changes your PSM
RE: Could someone point me to... by Clarkooo.1 on 01-27-2008 at 11:04 PM

no the now playing script allows you to colour your current set media and make it bold or italics etc...


RE: Could someone point me to... by Clarkooo.1 on 01-27-2008 at 11:09 PM

well how can I do this manually as the script does not work with iTunes?


RE: Could someone point me to... by MeEtc on 01-27-2008 at 11:27 PM

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);


}