• Welcome to Valhalla Legends Archive.
 

Recording chat to a text file

Started by EnCoDe, July 06, 2003, 04:01 AM

Previous topic - Next topic

EnCoDe

How can this be done?
I have seen it in MadChat and a few other bots.

SNiFFeR


Cy


______

#3
on your OnTalk Command put this


Open (App.Path & "\log.txt") For Append As #1
Write #1, Username & " "  & message
Close #1

EnCoDe


Lenny

But what if you wanted other people's text also....
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

EnCoDe

How do i remove the " " that suround the logged text in the log file?

Lenny

Another interesting thing is that when its displayed in a pic box the "" are gone.....Maybe its becuase the text is defined as a string....
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Stealth

Use the Print command instead of Write. Write is actually used to write records that can be retrieved later, Print is used with plain text.
- Stealth
Author of StealthBot