Shoutbox

Change CurrentMedia from Script - 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: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Change CurrentMedia from Script (/showthread.php?tid=63815)

Change CurrentMedia from Script by chicco on 07-22-2006 at 10:41 PM

hello,
is it possible to change the Messenger.MyCurrentMedia value??
because i red the documentation which says:
"This is a read-only property."
....
thanks!


RE: Change CurrentMedia from Script by ayjay on 07-22-2006 at 11:01 PM

The clue is in your question :P


RE: Change CurrentMedia from Script by ShawnZ on 07-22-2006 at 11:01 PM

no, the documentation is wrong, just to confuse people.


RE: Change CurrentMedia from Script by cloudhunter on 07-23-2006 at 12:06 AM

It isn't possible with script only, because as is mentioned it is readonly, but it's possible to create a script which interfaces with a DLL to do it, as seen in the AppMonitor script :)

Cloudy


RE: Change CurrentMedia from Script by chicco on 07-23-2006 at 10:24 AM

done... here is the code and the dll

code:
Interop.Call(MsgPlus.ScriptFilesPath + "\\msnUtils.dll", "setCurrentMedia", "TitleName", "AuthorName", "AlbumName");


bye bye, and thanks