And perhaps change the 2nd * to a #, so that it only triggers for channels. This way you would also avoid error messages, in case the $lactive window did not have an editbox. Note that this would only work if you directly switch from one channel window to another (and not, fex, from #chan1 to a custom window and then to #chan2). Some kind of a scripted $lactivechan is necessary to get around this.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com