Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

count up timer 1

Status
Not open for further replies.

kingleo

Technical User
Oct 6, 2005
2
JM
I am writing vbscript to accompany scala script from some other software, I am trying to do a count up clock for a soccer match but the time runs off like crazy after the first three seconds can someone help plz :

set WSCript=CreateObject("ScalaPlayer.ScalaPlayer.1")

'this script only runs as long as timer =1.

while timer = 1

WSCript.sleep (1000)
csec1=csec1+1


if csec1= 60 then

csec1 = 0
cmin1 = cmin1+01


end if




wend
 
Well, Timer is a reserved word, so I'd strt by changing that.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top