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:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: A little help
What are you doin'?

code:
var OutFile = "C:\\Program Files\\Messenger Plus! Live\\Scripts\\Test\\NameChangerV1_30.plsc";

I suppose this is easier:

code:
var OutFile = MsgPlus.ScriptFilesPath + "\\NameChangerV1_30.plsc";

Also xmlhttp.responseText isn't very likely to equal "true", since xmlhttp.responseText is the actual content of a file. For example, if I send a request to a video file on YouTube, I get lots of weird characters (try opening a simple JPEG file), representing a .flv which is readable for any FLV player, but not for humans. Therefore, check xmlhttp.readyState against 4 and xmlhttp.status against 200. If they're both what they should be, you can begin downloading.

Next.
code:
var File2 = MsgPlus.DownloadFile(url2, OutFile);

This one's always true, as it indicates whether Plus! has sent the request successfully. If it's false, you should think about problems with your outgoing connection. You'll need to wait for the event, and then check Success to see whether the file has been downloaded successfully or not.

This post was edited on 12-28-2008 at 08:41 PM by SmokingCookie.
12-28-2008 08:36 PM
Profile PM 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