mIRC Home    About    Download    Register    News    Help

Print Thread
#201313 24/06/08 07:53 PM
Joined: Oct 2007
Posts: 214
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Hi all,

I just wanted to know if it was possible to make an edit box in a dialog to display and update the time to make it function like a real digital clock.

Thanks in advance,

Cheers

Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Yes, it is possible

Code:
dialog dtest {
  title "Digital Clock"
  size -1 -1 100 50
  option dbu
  edit  $time, 1, 35 10 28 10
}

on 1:dialog:dtest:init:*: .timer.dclock 0 1 $!iif($dialog(dtest),did -ra dtest 1 $!time,.timer.dclock off)


Edit:
Load it in your remote: alt+r (tab "Remote")
Open dialog: /dialog -rm dtest dtest

Last edited by Crinul; 24/06/08 08:45 PM.
Joined: Oct 2007
Posts: 214
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Thanks very much.

It works perfectly.

Cheers,

Jay


Link Copied to Clipboard