Error 1 - You use the same name for both timers:
/timerClear 0 1800 clear -q
/timerClear 0 1300 clear -n
If you want to use two independent timers, you need to assign a unique name to each timer or number them sequentially, otherwise each subsequent command with the same timer name will reset the previous timer to start it again with new parameters.
For example:
/timerClearQ 0 1800 clear -q
/timerClearN 0 1300 clear -n
or:
/timerClear1 0 1800 clear -q
/timerClear2 0 1300 clear -n
For more details, see the help documentation:
https://en.wikichip.org/wiki/mirc/commands/timer〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰Error 2 - There is no switch
-q
for the command
clear -q
, this will work for the command
clearall -q
For more details, see the help documentation:
https://en.wikichip.org/wiki/mirc/commands/clear and
https://en.wikichip.org/wiki/mirc/commands/clearall〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰Example with unification into a single script:
on *:START:{
.timerClearAllQuery 0 1800 clearall -q
.timerClearChan 0 1300 clear #channel
}
Example using two different scripts:
on *:START:{
.timerClearAllQuery 0 1800 clearall -q
}
on *:START:{
.timerClearChan 0 1300 clear #channel
}
Note: You can clear all windows at once or add a suitable switch to clear only the desired type of windows, or can clear only one window by specifying its name.
P.S. To avoid wasting time creating scripts blindly, trying to guess in what case will it work, it is easier and faster to open help documentation for the required command/identifier/handler, to find out how to do it correctly without errors:
https://www.mirc.com/help/mirc.html or
https://en.wikichip.org/wiki/mirc