mIRC Home    About    Download    Register    News    Help

Print Thread
#273584 07/08/25 09:28 AM
Joined: Feb 2025
Posts: 19
abi Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Feb 2025
Posts: 19
i try this script

Quote
ON *:START: {
/timerClear 0 10800 clearall
}

and divide it into

Quote
ON *:START: {
/timerClear 0 1800 clear -q
}

Quote
ON *:START: {
/timerClear 0 1300 clear -n
}

after that I tried not successful only the initial script was successful

abi #273585 07/08/25 10:45 AM
Joined: May 2022
Posts: 136
F
Vogon poet
Offline
Vogon poet
F
Joined: May 2022
Posts: 136
I'm not sure but considering that all of them are timer 0 (so infinite replies) , they must have different name (timerclear1 , timerclear2 ,timerclear3, etc...)

abi #273586 07/08/25 11:33 AM
Joined: Jan 2012
Posts: 370
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 370
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:
Code
on *:START:{
  .timerClearAllQuery 0 1800 clearall -q
  .timerClearChan 0 1300 clear #channel
}

Example using two different scripts:
Code
on *:START:{
  .timerClearAllQuery 0 1800 clearall -q
}
Code
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


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #273597 10/08/25 10:53 AM
Joined: Feb 2025
Posts: 19
abi Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Feb 2025
Posts: 19
thanks all of you


Link Copied to Clipboard