Yoko

All sides of Injection
It is currently 2026-01-19 05:05:06

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Script running
PostPosted: 2008-05-27 14:04:17 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
I need a srcipt that can textprint how much time has the macro being running. Thanks :D


Top
   
 Post subject:
PostPosted: 2008-05-27 14:23:30 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
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


Top
   
 Post subject:
PostPosted: 2008-05-27 22:02:02 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
thanks bro :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited