Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: EnCoDe on July 06, 2003, 04:01 AM

Title: Recording chat to a text file
Post by: EnCoDe on July 06, 2003, 04:01 AM
How can this be done?
I have seen it in MadChat and a few other bots.
Title: Re:Recording chat to a text file
Post by: SNiFFeR on July 06, 2003, 04:35 AM
I believe your answers can be found here:
http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=1814 (http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=1814)
Title: Re:Recording chat to a text file
Post by: Cy on July 06, 2003, 04:43 AM
write log.txt %temp =\
Title: Re:Recording chat to a text file
Post by: ______ on July 06, 2003, 09:04 AM
on your OnTalk Command put this


Open (App.Path & "\log.txt") For Append As #1
Write #1, Username & " "  & message
Close #1
Title: Re:Recording chat to a text file
Post by: EnCoDe on July 06, 2003, 07:26 PM
Thanks. It worked.
Title: Re:Recording chat to a text file
Post by: Lenny on July 06, 2003, 08:03 PM
But what if you wanted other people's text also....
Title: Re:Recording chat to a text file
Post by: EnCoDe on July 06, 2003, 08:44 PM
How do i remove the " " that suround the logged text in the log file?
Title: Re:Recording chat to a text file
Post by: Lenny on July 06, 2003, 11:59 PM
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....
Title: Re:Recording chat to a text file
Post by: Stealth on July 07, 2003, 09:45 PM
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.