mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 871
Sat Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
I just noticed that I find myself repeating the same action quite often: opening the log file for the currently active window. For example, to search for something I know someone said in that channel/query/etc long ago.

Rather than going to the log viewer and finding the specific logfile, or typing something like "//run $window($active).logfile" in the window, I would prefer going to the window's menu and selecting Logging -> View, or something like that. I think such an option would make a great addition to the Logging submenu there.

As this is something that applies to all windows for which logging is supported, I don't think scripting this as entry to the window's popup menu is as good (or as logical).


Saturn, QuakeNet staff
Joined: Jul 2008
Posts: 236
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Jul 2008
Posts: 236
Saturn, of Quakenet staff, I feel obliged to offer such code:
Code:
menu * {
  View $window($active) &Logs : { run $window($active).logfile }
}

edit: read too little. Do forgive me.

Last edited by s00p; 30/06/09 12:22 PM.
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Sharing this experience, I second the idea.
It would break with "the windows' system menus are for the windows' settings only", but I can't think of another apt place. Maybe other users can...


Link Copied to Clipboard