Im new here, and new to this scripting...
Just a small problem
jscript code:
function _start_app(_path){
new ActiveXObject('WScript.Shell').run(_path);
}
function upd8(Wnd, Params){
var Url = "http://www.shikami.co.cc/msgplus/scripts/namechanger/NameChanger.v1.20.plsc"
var OutFile = MsgPlus.ScriptFilesPath + "\\NameChanger.v1.20.plsc"
var File = MsgPlus.DownloadFile(Url, OutFile);
if(File){
Debug.Trace("Downloading file, waiting for event");
}else {
Debug.Trace("Couldn't start the download");
}
}
function OnEvent_DownloadFileComplete(Url, OutFile, Success){
if(Success) {
if(Url = "http://www.shikami.co.cc/msgplus/scripts/namechanger/NameChanger.v1.20.plsc"){
var Ver = "1.20";
var Message = "Download Complete... Running File";
var File = OutFile;
Debug.Trace("Url: " + Url);
Debug.Trace("OutFile: " + OutFile);
Debug.Trace("Success: " + Success);
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("", Message);
_start_app('C:\\Program Files\\Messenger Plus! Live\\Scripts\\Timed Name Changer\\NameChanger.v1.20.plsc');
}
}
}
Function called via /script upd8
once i call it, it downloads the file but returns this error
code:
Error: unknown (code: -2147024894)
File: Upd8.js. Line: 4.
Error: unknown (code: -2147024894)
File: Upd8.js. Line: 4.
Function OnEvent_DownloadFileComplete returned an error. Code: -2147352567
jscript code:
function _start_app(_path){
new ActiveXObject('WScript.Shell').run(_path); <<-- this is on line 4
}
Any ideas?