What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Log Script

[Request] Log Script
Author: Message:
Jona
Junior Member
**

Avatar
Saving boredom!

Posts: 16
Reputation: 1
31 / Male / Flag
Joined: Oct 2006
O.P. [Request] Log Script
Hello, I need a little script that logs text a contact says. Something like this:

If the contact says "!log Blabla" must the text "Blabla" been saved in a txt file on my PC. If this happens multiple times, al texts must be saved in the same txt file. Has anyone an idea how to do this?

Thx :)

(sorry, i'm not so good in english)


--EDIT---
Better example:

Constact says:
!log Blabla
(Message will now be saved in log.txt)
I says (automatic):
Saved!

Constact 2 says:
!log Blabla 2
(Message will now be saved in log.txt)
I says (automatic):
Saved!

And now, log.txt sees like this:
Blabla
Blabla 2
-----------------------
Thaks to people who want to help me :)

This post was edited on 06-06-2007 at 06:24 PM by Jona.
06-06-2007 11:55 AM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Request] Log Script
Hi :D

Here's your requested script..

But keep in mind that the FSO object in this script will not save EVERY * message.



* it is delayed for about 7 - 10 seconds before it can save again.. otherwise it will print 'Access Denied' in the debug


It saves in it's Script directory..

For example: C:\Program Files\Messenger Plus! Live\Scripts\Logger\log.txt

You can change this. just edit the script and find the first variable (just below the comments {green text})

so if you want it to save to your desktop, you put it as:

code:
var dirSave = "%USERPROFILE%\\Desktop";

You can also change the filename of the file: log.txt

Have fun.

.plsc File Attachment: Logger.plsc (1.17 KB)
This file has been downloaded 189 time(s).
[quote]
Ultimatess6
: What a noob mod
06-07-2007 03:20 AM
Profile PM Web Find Quote Report
KatieScarlett
Disabled Account


Posts: 27
Reputation: 3
35 / – / Flag
Joined: May 2007
RE: [Request] Log Script
I think this feature is available in Messenger Plus! Live, no? *-)
It's Chat Logging, you can choose whether to save it as HTML or TXT, and as well, you can choose the location on where to save it, so why need a script?

KatieScarlett.
06-07-2007 07:51 AM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Request] Log Script
quote:
Originally posted by KatieScarlett
But keep in mind that the FSO object in this script will not save EVERY * message.



* it is delayed for about 7 - 10 seconds before it can save again.. otherwise it will print 'Access Denied' in the debug

This is easily fixed by using a buffer, just save all the messages to a buffer and write this buffer out to the file every say 10 secs.

You could also maybe use the Windows WriteFile API this might not have this 7 seconds restriction, but still a buffer would be good.
[Image: 1-0.png]
             
06-07-2007 08:08 AM
Profile PM Web Find Quote Report
scott2010_h
Full Member
***

Avatar

Posts: 187
Reputation: 10
32 / Male / Flag
Joined: Dec 2005
Status: Away
RE: [Request] Log Script
roflmao456 take more time on your scripts
there were a couple of mistakes/bugs in your script

but anyways i added a few more option you can find them inside the script and it should work with with out that 7-10 second delay.

.plsc File Attachment: logger.plsc (1.49 KB)
This file has been downloaded 125 time(s).
06-07-2007 08:55 AM
Profile E-Mail PM Web Find Quote Report
Jona
Junior Member
**

Avatar
Saving boredom!

Posts: 16
Reputation: 1
31 / Male / Flag
Joined: Oct 2006
O.P. RE: [Request] Log Script
Realy thanks :D

--EDIT--
it doesn't work ^o)

--EDIT AGAIN--
Said nothing xD
Thanks for the script!

--EDIT 3--
To solve a little problem, delete this in the script:
code:
+ "\n"

This post was edited on 06-25-2007 at 10:24 AM by Jona.
06-07-2007 08:46 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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