mIRC Home    About    Download    Register    News    Help

Print Thread
reading back lines from logs #121758 01/06/05 01:30 PM
Joined: Mar 2005
Posts: 27
N
Name141 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2005
Posts: 27
is there an easy way to read back about 5-6 lines from a user's last PM so if you closed the PM you remember what they said without having to open the logs back up?

something like

On *:open:?:{ set -u1 %linesquery $+ $nick $lines( some way to find out there logfile.txt ) | echo 12 $nick $calc((%linesquery $+ $nick ) - 1) }

or something of that sort ?

Re: reading back lines from logs #121759 01/06/05 06:25 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Once the window where the chat was taking place has been closed, the only way to get at the information is through the logs, presuming you did log.

Without knowing what format you've got setup on your system for storing the logs..ie: where the logs are stored and how the names are created, there's nothing more I can do at this point.

To view logs from within mIRC, click Tools - Log Files, which will bring up a dialog where you can search for a particular log

Re: reading back lines from logs #121760 01/06/05 09:29 PM
Joined: Jan 2005
Posts: 188
Brax Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 188
'Reload logs' Is not what you look for?


echo -a $signature
Re: reading back lines from logs #121761 01/06/05 10:30 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
not likely Brax, as Reload logs causes a log file that already exists to be loaded with the new chat information being appended to that log...it's fine if you only want one log file per nick, but some people, like myself, prefer to have log files that are dated and only contain chat information for that particular date.

Re: reading back lines from logs #121762 02/06/05 02:11 AM
Joined: Mar 2005
Posts: 27
N
Name141 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2005
Posts: 27
reloading logs would be fair, but i wanted just a short version of that.

Re: reading back lines from logs #121763 02/06/05 03:24 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
How are your logs being stored? an example of a filename of an actual log would be helpful.

Re: reading back lines from logs #121764 03/06/05 01:54 AM
Joined: Mar 2005
Posts: 27
N
Name141 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2005
Posts: 27
i was thinking, wouldn't a hashtable work for this the best way?

here's how i'd like for it to work...

there's about 5 line "buffer" the new line they just typed goes to 5.. 5 to 4 , 4 to 3 , 3 to 2, 2 to 1, 1 to unset.

anyway to do this ?

Re: reading back lines from logs #121765 03/06/05 08:12 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230