This is a time dialog. Use /time to load it up, and to get to TimeGet right away, type /timeget. To see a time of yours in a future version, just ask me in the comments system! Tested to work with mIRC v6.03.
; Time Dialog by UTUCS.com-Admin <admin@utucs.com>
;
; Tested
;
; This dialog makes some time, yet it doesn't have
; all times in it, I'll improve it later. Only the
; following time zones are supported:
;
; London - Europe
; Africa, Tunisia
; Chicago, Illinois
;
; The way to use this is to type /time. It will load
; up the time dialog, then you need to click the button
; saying "TimeGet." It will load up TimeGet (/timeget).
; I know the TimeGet was pretty useless, I put it in
; anyway.
;
; Future improvements will probably include more times,
; with help from others once I see the other times, and
; you may be able to just put it in to get the time. That's
; another future add-on I might be able to fit into
; this little program.
;
; It does nothing really useful, but just if you want
; to see the times in some places, it's only useful
; for that. If you'd like to see the time for another
; place, let me know in the comments system! With all
; your feedback, I'll do it!
;
; Thanks to Collective on DALnet #mIRC for helping
; me with this dialog and getting the times.
alias time {
dialog -m time time
}
alias timeget {
dialog -m timeget timeget
}
dialog time {
title "Time Dialog"
size -1 -1 84 29
option dbu
button "TimeGet", 3, 0 0 37 12
button "Okay", 4, 9 17 37 12, ok
button "Cancel", 5, 47 17 37 12, cancel
menu "File", 1
item "Exit", 2, 1
}
ON *:DIALOG:time:SCLICK:*: {
if ($did == 3) { /timeget }
if ($did == 4) { //dialog -x $dname }
if ($did == 5) { //dialog -x $dname }
}
dialog timeget {
title "Time Dialog: TimeGet"
size -1 -1 153 30
option dbu
button "Get London Hours", 1, 0 0 76 15
button "Get Africa, Tunisia Time", 2, 77 0 76 15
button "Get Chicago, Illinois Time", 3, 0 15 76 15
button "Okay", 4, 77 15 76 15
}
ON *:DIALOG:timeget:SCLICK:*: {
if ($did == 1) { //echo -a $asctime($gmt) }
if ($did == 2) { //echo -a $asctime($calc($gmt + 3600)) }
if ($did == 3) { //echo -a $asctime($calc($gmt - 6 * 3600)) }
if ($did == 4) { //dialog -x $dname }
}