mIRC Homepage
Posted By: xrn0id help with uptime timer: - 02/03/03 06:20 PM
how do i fix this?

Code:
.timeruptime 0 1 { //set %uptime $uptime(system,1) | //dll dll/ktools.dll SbSetText 2 > noborder > [Uptime: %uptime $+ ] | unset %uptime }


it works for the first time, but this thinks $uptime(system,1) is the same as when it was first executed. So whats up?
Posted By: Lowest Re: help with uptime timer: - 02/03/03 06:26 PM
you know if would work if you just used $uptime(server,1) instead of the variable

but i think this will work
Code:
.timeruptime 0 1 { unset %uptime | set %uptime $uptime(system,1) | dll dll/ktools.dll SbSetText 2 > noborder > [Uptime: %uptime $+ ] }  
Posted By: billythekid Re: help with uptime timer: - 02/03/03 08:39 PM
try this....
Code:
.timeruptime 0 1 uptimethingy
alias uptimethingy {
 set %uptime $uptime(system,1) 
dll dll/ktools.dll SbSetText 2 > noborder > [Uptime: %uptime $+ ] 
 unset %uptime 
}
that way itnstead of the timer being set to always do the same thing, its set to do the alias, which re-evaluates the variables
Posted By: xrn0id Re: help with uptime timer: - 03/03/03 02:36 AM
ty billy
© mIRC Discussion Forums