forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Timer Command Help

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Tue Mar 09, 2010 9:53 am    Post subject: Timer Command Help Reply with quote

Hi,
I need to execute a function every <n> minute, I tried to use timer command but or not workm or compiling return error.
I Use this
Code:
timer start,2,Ctdown,@fadd(0.0,@datetime(,0:6:0))


Anyone can help me or explain timer command sintax?

Many tnx
Back to top
View user's profile Send private message Send e-mail
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Tue Mar 09, 2010 11:35 am    Post subject: Reply with quote

http://forum.vdsworld.com/viewtopic.php?t=3472&highlight=ctdown+timer

Code:
  REM Insert at the beginning of your script before your event loop
  timer start,1,CTDOWN,00-00:00:05

  dialog create,Test,-1,0,300,200
  dialog show

:Evloop
  wait event
  goto @event()

:Timer1CTDOWN
  REM Refresh your page or whatever here
  Info Time to refresh document
  goto Evloop

:CLOSE
  exit


Just a copy/paste from that link.. Don't have vds installed on here atm, so maybe that works

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Wed Mar 10, 2010 10:35 am    Post subject: Reply with quote

Hi kOt Smile

Thank you for your reply but I just tried this and not work Crying or Very sad

I recived the same error message, I used Vds6, Vds5
I don't uderstand why not work
Sad
Bye and thank's again
Back to top
View user's profile Send private message Send e-mail
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Wed Mar 10, 2010 11:26 am    Post subject: Reply with quote

VDS 6:

Code:

timer start,1,Ctdown,@fadd(A,@datetime(,B:CC:DD))

so

timer start,1,Ctdown,@fadd(0,@datetime(,0:05:00))



A = Days
B = Hours
CC = Minutes
DD = Seconds

Will be a :Timer1CTDown in 5 minutes

regards

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Wed Mar 10, 2010 1:35 pm    Post subject: Reply with quote

Work Very Happy

Many many tnx Rubes_sw
and now I want understand what I wronged in my code sgrunt!! Twisted Evil
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group