| View previous topic :: View next topic |
| Author |
Message |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Tue Mar 09, 2010 9:53 am Post subject: Timer Command Help |
|
|
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 |
|
 |
kOt Contributor

Joined: 19 Jan 2004 Posts: 89 Location: Fyffe, AL
|
Posted: Tue Mar 09, 2010 11:35 am Post subject: |
|
|
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 |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed Mar 10, 2010 10:35 am Post subject: |
|
|
Hi kOt
Thank you for your reply but I just tried this and not work
I recived the same error message, I used Vds6, Vds5
I don't uderstand why not work
Bye and thank's again |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Wed Mar 10, 2010 11:26 am Post subject: |
|
|
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 |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed Mar 10, 2010 1:35 pm Post subject: |
|
|
Work
Many many tnx Rubes_sw
and now I want understand what I wronged in my code sgrunt!!  |
|
| Back to top |
|
 |
|
|
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
|
|