What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Writing text

[Help] Writing text
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Help] Writing text
It would have been helpful if you could provide the result of the script debugger, since now I have to guess what went wrong in your code. ;)

Anyway, assuming that fsObj is correctly defined as a FileSystemObject in the global scope, I firstly recommend you to remove the check of FileExists(). This is already implemented if you set the create attribute to true, and thus there's no need to check it yourself:
code:
var fsObj = new ActiveXObject("Scripting.FileSystemObject");

function AddLineToFile (file, line) {
  var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, /*ForAppending*/ 8, /*Create*/ 1);
  fileObj.WriteLine(line);
  fileObj.Close();
}
I don't know what else might be wrong with your code... :-/
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-26-2008 12:15 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Writing text - by uNDeRGRouND99 on 06-26-2008 at 08:00 AM
RE: [Help] Writing text - by Matti on 06-26-2008 at 12:15 PM
RE: [Help] Writing text - by uNDeRGRouND99 on 06-26-2008 at 01:43 PM


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