
Script running
Moderators: Murderator+, Murderator
Script running
I need a srcipt that can textprint how much time has the macro being running. Thanks 

-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact:
Code: Select all
sub Time_Check()
var STime=0
var MTime=0
var HTime=0
uo.DeleteJournal()
while not uo.InJournal('stop')
STime=STime+1
if STime==60 then
if MTime==60 then
HTime=HTime+1
MTime=0
STime=0
else
MTime=MTime+1
STime=0
end if
end if
if STime==0 || STime==15 || STime==30 || STime==45 || STime==60 then
uo.Print('Script is running '+STR(HTime)+'houres / ' +STR(MTime)+' minuits / '+STR(STime)+' seconds.')
end if
wait(1000)
wend
uo.Print('Stoped. Time is: '+STR(HTime)+'houres / ' +STR(MTime)+' minuits / '+STR(STime)+' seconds.')
end sub