
!sendsong 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: !sendsong script (/showthread.php?tid=71013)
!sendsong script by mad_willsy on 01-24-2007 at 07:57 PM
hi, i know there are a few scripts with it intergated, but does anyone have a script that allows your contact to type !sendsong and it send song - cheers!
RE: !sendsong script by Rolando on 01-24-2007 at 08:08 PM
http://shoutbox.menthix.net/showthread.php?tid=61021&page=1
RE: !sendsong script by mad_willsy on 01-24-2007 at 08:51 PM
I tried that - too complicated for my friend that wants it....
I just need the snippet that does the !sendsong thing...
Put it another way....
How do you send a file using a script?
How do you make a script listen for a contact saying a set command?
How do you get the full file path of YOUR current playing media?
RE: !sendsong script by Rolando on 01-24-2007 at 09:08 PM
I don't see how that script is complicated. All you need to do is type /sendsong
It has other features, but you can use that one
RE: !sendsong script by mad_willsy on 01-25-2007 at 03:55 PM
I have tried it, it doesn't work
RE: !sendsong script by MrT on 01-25-2007 at 06:13 PM
dt's now playing script(version: 1.2.6) can do this.
try again
RE: !sendsong script by mad_willsy on 01-25-2007 at 06:43 PM
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?
|