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

!sendsong script
Author: Message:
mad_willsy
Junior Member
**


Posts: 21
33 / Male / Flag
Joined: Jan 2007
O.P. RE: !sendsong script
I have got DT's now playing script working for my friend, however for me, I use SAM Broadcaster.


The Paths are stored as "E:\My Music\deejay playboy-im my dreams (who is dj carlee).mp3" by the player.

When I manualy edit the XML file to replace the \ with \\ and use a file with no special chars in its name, it works. How do i edit this to make the variable locationVar SendFile friendly!

Please no "bob's script does this", i wanna learn

[code]
function OnEvent_ChatWndReceiveMessage(wnd, origin, message)
{
    if(origin != Messenger.MyName){
    MsgPlus.AddTimer("MessagesTimer", 4000);
    file = MsgPlus.ScriptFilesPath + "\\output.xml";
    //Load the status of the script and the list of messages.
    XMLDoc = new ActiveXObject("Microsoft.XMLDOM");
    XMLDoc.aync = false;
    XMLDoc.load(file);
    //Load values from the xml file.
    version = XMLDoc.getElementsByTagName("version");
    timer = XMLDoc.getElementsByTagName("timer");
    artist = XMLDoc.getElementsByTagName("artist");
    title = XMLDoc.getElementsByTagName("title");
    played = XMLDoc.getElementsByTagName("played");
    playedVar = played[Math.floor(Math.random()*played.length)].text;
    location = XMLDoc.getElementsByTagName("location");
    locationVar = location[Math.floor(Math.random()*location.length)].text;
    if(message == "!test"){
    wnd.SendFile(locationVar);
    }
    }
}

Edit:
It works, it just stops some right click functions working till i close window. How do I avoid this?

This post was edited on 01-25-2007 at 07:38 PM by mad_willsy.
Backthebulls.com - Free online games
Upload your own stuff - free!
01-25-2007 06:43 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
!sendsong script - by mad_willsy on 01-24-2007 at 07:57 PM
RE: !sendsong script - by Rolando on 01-24-2007 at 08:08 PM
RE: !sendsong script - by mad_willsy on 01-24-2007 at 08:51 PM
RE: !sendsong script - by Rolando on 01-24-2007 at 09:08 PM
RE: !sendsong script - by mad_willsy on 01-25-2007 at 03:55 PM
RE: !sendsong script - by MrT on 01-25-2007 at 06:13 PM
RE: !sendsong script - by mad_willsy on 01-25-2007 at 06:43 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