mIRC Home    About    Download    Register    News    Help

Print Thread
#160824 01/10/06 02:05 AM
Joined: Jan 2003
Posts: 27
S
SirUrza Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 27
Hi,

I play an irc game and I like to check the last log, particularly the end of the log to see where things left off... you know, as a refresher.

Anyway, having a script that'll open the last log file would be really useful. Anyone know of a script that I can find a script like this or bored enough to make one for me?

My understanding of mirc scripting is so basic this is really beyond me to attempt on my own. frown

I figure loadbuff would be a good way to do it, but I can't figure out how to make mirc find the newest log file. (All log files are named #channel.yearMonthDay.log)

Last edited by SirUrza; 01/10/06 02:11 AM.
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
cant u just set reload logs on channels to on?

Joined: Jan 2003
Posts: 27
S
SirUrza Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 27
Reload logs on the channel? I don't know what you mean.

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
alt-o / irc / logging / reload logs : CHANNEL

Joined: Jan 2003
Posts: 27
S
SirUrza Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 27
Oh I see what you mean, would be great, but I want to keep the channel windows clean and open a window that'll have the text dumped into it. That option dumps the whole previous log file in the window.

alias last {
/window -omk0fe +stnxfe @LastSession x,y,w,h
%mydate = $date(yyyymmdd) - 1
%mylog = #modern + %mydate + .log
aline -p @LastSession %mylog
;/loadbuf 25 @LastSession %mylog
}

That's what I've got. But %mylog returns...

#modern + 20060929 + .log

Which clearly isn't going to work in the loadbuff line.

Any ideas?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
try: %mylog = #modern $+ %mydate $+ .log

Joined: Jan 2003
Posts: 27
S
SirUrza Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 27
That did it Russel, thanks. Just had to add /logs/ to the front of #modern and it works now. smile


Link Copied to Clipboard