mIRC Homepage
Posted By: Hypnotoad Chat Log Question - 24/05/05 02:46 AM
I am using mIRC v6.14. I have been trying to find a way to change chat logging to export as a .txt file instead of a .log file. Is there any way to choose that option, perhaps by adding a script, or changing preferences. I cannot seem to find that anywhere.

I know that you can use a regular notepad to open a .txt file, but i need the files to be .txt to be cached by google desktop can index the chat files and help provide me with quick lookup of my chat history.

Thanks for the help
Posted By: Danthemandoo Re: Chat Log Question - 24/05/05 06:08 AM
Code:
on *:join:#:{
  if ($nick == $me) { 
    .log on # -f # $+ .txt
  }
}


That will automatically log the channel you join as #channelname.txt, so if you join #mIRC it will log as #mIRC.txt in your default logs directory.
Posted By: SladeKraven Re: Chat Log Question - 24/05/05 12:56 PM
Hey dude, just a few pointers regarding Danthemandoo's post, and they are:

  • If you don't know where the code goes, you can do the following:

[*]Press Alt+ R.
[*]Click the /A button on the toolbar ensuring that Remote is the active tab.
[*]Or using the menubar "Tools" > "Scripts editor... Alt-R"


  • Regarding his code:


Well, there's nothing really wrong with it at all, but instead of using the IF statement, I'd rather keep it all on one line.

Code:
On me:*:Join:#: { log on $chan -f $+($chan,..txt) }
Posted By: mIRCManiac Re: Chat Log Question - 24/05/05 01:36 PM
.log on # -f $replace($mklogfn(#),.log,.txt)
© mIRC Discussion Forums