What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » A little advice

A little advice
Author: Message:
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
RE: A little advice
code:
function OnEvent_MyMediaChange(NewMedia) {
    var BlankMedia = "\\0Music\\00\\0\\0\\0\\0\\0\\0";
    if(NewMedia == "" || NewMedia == BlankMedia) {
        Debug.Trace("Media is now off.");
    } else if(Messenger.MyCurrentMedia == "" || Messenger.MyCurrentMedia == BlankMedia) {
        Debug.Trace("Media is now on.");
    }
}
Be aware that this event often contains a slight delay from when the media appears to be updated.

I hope this is what you wanted. This will catch when your media turns on, and when your media turns off, but not when your media changes.

This post was edited on 11-05-2007 at 02:53 AM by phalanxii.
11-05-2007 02:52 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
A little advice - by ArkaneArkade on 11-05-2007 at 02:07 AM
RE: A little advice - by phalanxii on 11-05-2007 at 02:52 AM
RE: A little advice - by ArkaneArkade on 11-05-2007 at 04:09 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