mIRC Home    About    Download    Register    News    Help

Print Thread
#38990 31/07/03 02:44 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
How do i make like the windows uptime in a dialog stay active? like if i bring it up it shows 1hr 6mins 10sec it will go up to like 1hr 6mins 11secs


k1ll3rz
#38991 31/07/03 02:57 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Use a timer, e.g.:
.timeruptime 0 1 /did -ra $dname id $!uptime(system,1)

#38992 31/07/03 03:11 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
on 1:dialog:pcinfo:init:*: {
timeruptime 0 1 /did -ra $dname 27 $duration($calc($ticks / 1000))
}

that is wut i have but it isnt werking
i get the error: * /did: invalid parameters

if i use:
on 1:dialog:pcinfo:init:*: {
timeruptime 0 1 /did -ra pcinfo 27 $duration($calc($ticks / 1000))
}
^----keeps the time at one time and just stays there

can u tell me where i am going wrong at?

Last edited by k1ll3rz; 31/07/03 03:13 AM.

k1ll3rz
#38993 31/07/03 03:13 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Use: $!duration($!calc($!ticks / 1000))


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#38994 31/07/03 03:21 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
when i use: $!duration($!calc($!ticks / 1000)) it returns a value of 0 . why is that?


k1ll3rz
#38995 31/07/03 03:23 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
$!duration($calc($ticks / 1000))

Hammer used too many !s. I'm not sure why your first script didn't work..looks like $dname didn't do what it should..

#38996 31/07/03 03:30 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
why dont it werk tho?


k1ll3rz
#38997 31/07/03 03:33 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on 1:dialog:pcinfo:init:*: {
  timeruptime 0 1 /did -ra pcinfo 27 $!duration($calc($ticks / 1000))
}
Should work fine.

#38998 31/07/03 03:37 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Bah, I say unto you!

on 1:dialog:pcinfo:init:*: timeruptime 0 1 updateUptime
alias updateUptime did -ra pcinfo 27 $duration($calc($ticks / 1000))

:tongue:


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#38999 02/08/03 07:08 PM
Joined: Jun 2003
Posts: 67
D
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
Code:
 .timeruptime 0 1 /did -ra $dname id $uptime(system,1) 
that timer should work fine


while (demi == nub) {
inc %skill
}
#39000 02/08/03 07:11 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Sure it will work fine..if you type it in manually with only one / every time you open the dialog. It doesn't however work in a script file, which is what he wants.


Link Copied to Clipboard