[script] Toggle Marker Line
Added by Mr. BS over 10 years ago
Just an example to change AdiIRC config using the Setoption command. In this case, a toggle for the Marker Line, similar to shortcut Ctrl+L on mIRC.
This board can be a good snippets repository, why not? :P
Observations:¶
- The alias shortcut in script is af2, it means <alt>+<F2>;
- The color 24 used in echo message is explained in Extra Colors article.
- There is noticeable delay to apply the config, this is know limitation of ini files, but it doesn't bother me.
<video controls>
<source src="http://1.grn.cc/temp/2014-03-13_19-42-51.mp4">
</video>
Script:¶
; Toggle Marker Line - http://dev.adiirc.com/boards/5/topics/165 ; v01 by pereba alias af2 { if ($readini(config.ini,Messages,UseUnreadLine) == true) { setoption Messages UseUnreadLine false echo 24 -at * Marker line is off return } setoption Messages UseUnreadLine true echo 24 -at * Marker line is on }