Hello people!!!
I'm trying to use this script with Rapidshare. I'm not good on scripting and I know it can sound strange, but what I'm trying to make is a script that you enter RapidShare URL with de code (that begin with /) and after 16 minutes it'll open the URL.
Don't know what's happening with it -> Nothing on Debugging
jscript code:
function OnGetScriptCommands(){
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>rapiddown</Name>";
ScriptCommands += "<Description>Colocar URL</Description>";
ScriptCommands += "<Parameters><URL></Parameters>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if (Message.substr(0, 11) == "/rapiddown "){
var truedown = Message.substr(Message.search(' '));
downloadtime();
return "";
}
}
function downloadtime()
{
MsgPlus.AddTimer("timer", 960000);
MsgPlus.DisplayToast("RapidDown","16 minutos para novo download");
}
function OnEvent_Timer(timerID, truedown)
{
if(timerID == "timer")
{
MsgPlus.DisplayToast("RapidDown", "Abrindo link!");
Operurl(truedown);
}
function Openurl(truedown)
{
new ActiveXObject('WScript.Shell').Run(truedown);
}
}
Thanks
PS: truedown is the URL I typed with "/" code!!!
PS2: If someone wants to use the code, be free to use it