mIRC Home    About    Download    Register    News    Help

Print Thread
Right-Click for View Channel Log #266285 04/11/19 04:06 PM
Joined: Aug 2012
Posts: 57
Maelish Offline OP
Babel fish
OP Offline
Babel fish
Joined: Aug 2012
Posts: 57
Hi guys.

Currently you can right-click in a channel window. But it only gives you an option to view Channel Modes.

Is it possible to script an additional option such as View Log for the current channel?


Find Gamers, my player finder for tabletop RPGers and Wargamers.
Re: Right-Click for View Channel Log [Re: Maelish] #266286 04/11/19 06:12 PM
Joined: Dec 2015
Posts: 123
Dazuz Offline
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 123
Certainly, you can either edit the popups (ALT+P) section in script editor, or use remote (ALT+R) scripts like this one:
Code
menu channel {
  $iif(!$isfile($chan(#).logfile),$style(2)) View channel log:logview $qt($chan(#).logfile)
  Random example:echo -a Hello world!
}
If the log file doesn't exist, the menu entry will be grayed out.

/help menus