mIRC Home    About    Download    Register    News    Help

Print Thread
#42494 17/08/03 08:13 PM
Joined: Aug 2003
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Aug 2003
Posts: 3
hi i need help about this code for show in what secs i open mIRC

Loaded $calc(($ticks - %start) / 1000) secs

with this code only show

Loaded 123767.743 secs

i not need this long number just 2.24secs like this


Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
How do you set %start?

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You could just use $uptime(mirc,3) to get the number of seconds mIRC has been open, or $calc($uptime(mirc) / 1000) if you wanted to be more accurate.

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
set that %start like this:
set %start $ticks


Joined: Aug 2003
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Aug 2003
Posts: 3
umm i put like this
$calc((%start - %start $tick) / 1000) secs

just show 0 secs only

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
no, stay with your old code, just when u set the %start , put there $ticks

Joined: Aug 2003
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Aug 2003
Posts: 3
thnx ScatMan work now


Link Copied to Clipboard