mIRC Home    About    Download    Register    News    Help

Print Thread
Chat Log Question #121135 24/05/05 02:46 AM
Joined: May 2005
Posts: 1
H
Hypnotoad Offline OP
Mostly harmless
OP Offline
Mostly harmless
H
Joined: May 2005
Posts: 1
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

Re: Chat Log Question #121136 24/05/05 06:08 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
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.

Re: Chat Log Question #121137 24/05/05 12:56 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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) }

Re: Chat Log Question #121138 24/05/05 01:36 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
.log on # -f $replace($mklogfn(#),.log,.txt)