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:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: A little help
First of all, you have an error here:
code:
function OnEvent_DownloadFileComplete(Url, OutFile, Success){
    if(Success) {
        if(Url == "http://www.shikami.co.cc/msgplus/scripts/namechanger/NameChanger.v1.20.plsc"){
since you need to compare Url (using == or === ), not assign Url (using = ). You might not notice this because you only have one download which can trigger the event, but in fact by assigning it in the if-statement, in your case it'll always equal true.

Now, more specifically about your error: my guess is that it should be
code:
new ActiveXObject('WScript.Shell').Run(_path);
Notice the capitalized method name. I found this on the MSDN Page, so I think you have to use the exact same spelling. This is not very surprising, because many programming languages including JScript are case-sensitive when it comes to variable names.

This post was edited on 12-18-2008 at 09:11 AM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-18-2008 09:10 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