mIRC Homepage
Posted By: DarkTexas Exporting timers? - 15/08/16 04:15 PM
Asking myself if it's possible to export the current running timers? E.g. To a Text file or whatever? In general getting an Outout as it is when you do /timers ?

- Chris
Posted By: splinny Re: Exporting timers? - 15/08/16 05:20 PM
Check Help for $timer.
Posted By: ruprecht Re: Exporting timers? - 20/08/16 05:26 PM
Code:
alias export.timers {
  if (!$1) echo -a Need a file name! | return
  write -c $1- 
  var %i = 1
  while (%i <= $timer(0)) {
    write $1- $timer(%i) $timer(%i).time $timer(%i).reps time(s) $timer(%i).delay $+ s delay $timer(%i).com
    inc %i
  }
}
© mIRC Discussion Forums