The script posts the mIRC or System Uptime in the active channel your in when you click Say In Channel
;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ;
; Uptime ;
; By Dj 801 ;
; ;
; irc.wubnet.org:6667 ;
; #dj801,#mIRC ;
; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
dialog uptime {
title "Uptime"
size -1 -1 155 62
option dbu
button "Exit", 1, 26 41 88 12, ok
text "mIRC", 2, 3 19 21 8
text "System", 3, 3 30 22 8
edit "", 4, 26 18 83 10, read autohs
edit "", 5, 26 29 84 10, read autohs
button "Say in Channel", 6, 111 18 40 9
button "Say in Channel", 7, 111 30 40 9
box "Time", 8, 1 10 153 49
text "Uptime Dialog", 9, 54 2 31 8
}
alias uptime { dialog -md uptime uptime }
Menu Channel {
Uptime:/uptime
}
on *:DIALOG:uptime:sclick:*:{
if ($did == 6) { msg $active My mIRC's Uptime is $+ $did(4) $+ }
if ($did == 7) { /msg $active My System's Uptime is $+ $did(5) $+ }
}
on *:DIALOG:uptime:INIT:*:{ .timertabletime 0 1 sysirct $dname }
on *:dialog:uptime:close:*:{ .timertabletime off }
alias -l sysirct { did -ra $1 4 $uptime(mirc, 1) | did -ra $1 5 $uptime(system, 1) }