mIRC Home    About    Download    Register    News    Help

Print Thread
#172607 12/03/07 09:09 PM
D
DarthQuiGon
DarthQuiGon
D
alias clock { /timerClock 0 1 echo -a $!asctime($time) | haltdef }

i made this ,i want like a normal clock , because my way show the

13:00:50
13:00:51

thanx for your help

#172609 12/03/07 09:19 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Code:
 
//timer 0 1 //echo -a $!asctime(h:nn:ss)

-Displays 3:00:29 hour regular : minutes : seconds

//timer 0 1 //echo -a $!asctime(H:nn:ss)

-Displays 15:00:29 hour milatary : minutes : seconds

Lpfix5 #172617 12/03/07 10:18 PM
D
DarthQuiGon
DarthQuiGon
D
thnx , but i want other think , i mean
like a regular clock ,

7:16:02
7:16:03
7:16:04
7:16:05

not like this

#172620 13/03/07 12:02 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
You're going to have to clarify what you mean by "regular clock"

If you mean a clock with the numbers 1 to 12 and two or three hands (one to show the hour, one to show minutes and one to show seconds), then this might be possible using a picture window, but it would not be simple. P.S.: This is sometimes referred to as an analog clock.

The two codes given will show the current time in a digital clock format (either 12 or 24 (aka military) hour format)

RusselB #172628 13/03/07 05:40 AM
D
DarthQuiGon
DarthQuiGon
D
thnx , but i want try to do , is
get the hour ,

17:00:00 but change in the same line not in others

ej.

17:00:01
17:00:02

i mean

17:00:01 then incrise 17:00:02

thnx

#172630 13/03/07 08:20 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
This will require either a dialog, or a custom window. Either of which can easily be written, depending on your preference, however, as it's 4:20 am, I'm going to bed soon, so I won't be able to work on this for another 14 - 18 hours.

#172632 13/03/07 09:49 AM
S
Sintel
Sintel
S
The following is for a custom window, haven't checked for a dialog yet:
Code:
alias clockStart {
  window -c @Clock
  window -z @Clock
  echo @Clock $asctime(H:nn:ss)
  .timerclock 0 1 //rline @Clock 1 $!asctime(H:nn:ss)
}

alias clockStop {
  timerclock off
  window -c @Clock
}
That works, however, as said, it's in a separate custom window, so I'm not so sure it is all that useful. You can tile your windows to see it all the time smirk Where did you originally want it displayed?

#172657 13/03/07 04:58 PM
D
DarthQuiGon
DarthQuiGon
D
thnx so much, is that what i want

RusselB #172658 13/03/07 05:01 PM
D
DarthQuiGon
DarthQuiGon
D
thanx pal, for your help

#172684 13/03/07 10:34 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
I'm glad a custom window was done up, as I've got little experience with them. On a side note, you could also use this, which puts the date & time (adjustable to your preferences) in the title bar
Code:
on *:start:{
.timertime -m 0 500 titlebar $!asctime(ddd mmm ddoo yyyy @ h:nn:ss tt)
}

Note: This will replace your current titlebar display, not append to it.


Link Copied to Clipboard