mIRC Home    About    Download    Register    News    Help

Print Thread
#56665 21/10/03 10:21 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
I think it would be nice if timers that use a time (H:nn) can use a wildcard for the time.

Example: /timer *:30 1 1 <commands>

This would execute the command every hour at the 30 minute mark (like: 1:30 2:30 3:30 ... ).


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
#56666 22/10/03 03:35 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Agreed, this would be cleaner than the current methods..


* cold edits his posts 24/7
#56667 22/10/03 11:00 PM
Joined: Oct 2003
Posts: 3
T
Self-satisified door
Offline
Self-satisified door
T
Joined: Oct 2003
Posts: 3
I would like to see timed option command window ,where you specified a what time and channel the command will execute.


Can this be done with the timer command and how.For example execute a 'trigger' only once in the current active channel

#56668 22/10/03 11:54 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
You could use ON ACTIVE for that.. but I don't know if I understand your suggestion, please show some examples.


* cold edits his posts 24/7
#56669 04/11/03 08:30 PM
Joined: Sep 2003
Posts: 38
O
Ameglian cow
Offline
Ameglian cow
O
Joined: Sep 2003
Posts: 38
Here's something that'll do that :
Code:
; Usage: hourlytimer [timer_name] minute_every_hour command
alias hourlytimer {
  if ($1 isnum) var %timername, %minute = $1, %command = $2-
  else var %timername = $1, %minute = $2, %command = $3-
  var %hour = $calc($asctime(HH) $iif($asctime(nn) &gt; $calc(%minute - 1), + 1))
  if (%hour == 24) set %hour 0
  var %parameters = $+(%hour, :, $base(%minute, 10, 10, 2)) 0 3600 %command
  if ($show) $+(timer, %timername) %parameters
  else $+(.timer, %timername) %parameters
}


Link Copied to Clipboard