What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » save messages to .txt-file and upload it on the internet - but how?

save messages to .txt-file and upload it on the internet - but how?
Author: Message:
realEquinox
New Member
*


Posts: 3
Joined: Apr 2008
O.P. Undecided  save messages to .txt-file and upload it on the internet - but how?
Hi2all!

This is the first time i write in jscript so i don't know the syntax - but it's not that different from java so I hope I can make it:)

I read many tutorials about how2 create and write into a txt-file, but it doesn't work:S here's the code i used:

myFile = new File('C://test.txt');

I wanted to save the text written in my conversations in this txt-file, and then upload it to a ftp-server (there should also be a window were the user of the script can write in the server's address, password and username), so it would be possible to upload the "logs" if you are chating somewhere, and then download them at home.

For the upload I used the script I found in the documentation - but still it's not working:S

function OnEvent_ChatWndCreated(ChatWnd)
{
    myFile = new File('C://test.txt');
   
    var Started = MsgPlus.UploadFileFTP("C:/Setup.log", "ftp://username.awardspace.com/", "username", "password", "test.txt");
    if(Started)
        Debug.Trace("Uploading file, waiting for event");
    else   
        Debug.Trace("Couldn't start the upload");
}

function OnEvent_UploadFileComplete(Server, Destination, Source, Success)
{
    Debug.Trace("UploadFileComplete event received for " + Destination);
    Debug.Trace("   Success: " + Success);
}

Sorry 4 my bad english:S - thx 4 your answers:)

This post was edited on 04-24-2008 at 04:27 PM by realEquinox.
04-24-2008 04:24 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
save messages to .txt-file and upload it on the internet - but how? - by realEquinox on 04-24-2008 at 04:24 PM
RE: save messages to .txt-file and upload it on the internet - but how? - by matty on 04-24-2008 at 04:27 PM
RE: save messages to .txt-file and upload it on the internet - but how? - by realEquinox on 04-25-2008 at 02:01 PM
RE: save messages to .txt-file and upload it on the internet - but how? - by roflmao456 on 04-27-2008 at 05:46 PM
RE: save messages to .txt-file and upload it on the internet - but how? - by realEquinox on 04-27-2008 at 07:42 PM
RE: save messages to .txt-file and upload it on the internet - but how? - by CookieRevised on 06-30-2008 at 07:37 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