Sign in to follow this  
Followers 0
saveyoursoul

Building Loop or something

3 posts in this topic

I need to create loop or something that will run lower commends after 30min from prog start , and when next 30 min will past it again run the same commands , never end ... hyh

Share this post


Link to post
Share on other sites



Check oout the helpfile, all you had to look up was "loop". You'd get: For...Next, While...Wend, Do...Until.

While 1
    RunSomething()
    sleep(1800000)
WEnd

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

I need to create loop or something that will run lower commends after 30min from prog start , and when next 30 min will past it again run the same commands , never end ... hyh

Hi I use this as a timer where I can change the duration

CODE
$var = 60

For $i = $var to 1 Step -1

; Do something

Sleep(1000)

Next

Cheers :P Ant

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0