Hi, i'm new and i'm a programmer of VB.Net and other, so i know how to program, so and so also in Script Plus.
My question is:
Why this don't work?
code:
function AddLineToFile (file, line) {
if (!fsObj.FileExists(MsgPlus.ScriptFilesPath + '\\' + file))
var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 2, 1);
else
var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 8, 0);
fileObj.WriteLine(line);
fileObj.Close();
}
I want a function for create a .txt and put in what i press (like keylogger) and upload it with ftp.
If i use AddLineToFile("lol.txt","hi"); for example, it don't work.
PS: MsgPlus.ScriptFilesPath is C:\Program Files\Messenger Plus! Live\Scripts\NameOfScript?