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

A little help
Author: Message:
Shi-Kami
New Member
*


Posts: 3
– / Male / Flag
Joined: Dec 2008
O.P. A little help
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?
12-18-2008 02:12 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
A little help - by Shi-Kami on 12-18-2008 at 02:12 AM
RE: A little help - by Matti on 12-18-2008 at 09:10 AM
RE: A little help - by Spunky on 12-18-2008 at 04:00 PM
RE: A little help - by Shi-Kami on 12-18-2008 at 10:47 PM
RE: A little help - by roflmao456 on 12-18-2008 at 10:57 PM
RE: A little help - by Shi-Kami on 12-19-2008 at 12:04 AM
RE: A little help - by SmokingCookie on 12-28-2008 at 08:36 PM
RE: A little help - by Matti on 12-29-2008 at 09:01 AM


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