Jump to content
Sign in to follow this  
BOUNCER

how to run func every X hours

Recommended Posts

BOUNCER

how do i run http://www.autoitscript.com/forum/index.ph...860&hl=SMTP

every 12 hours? i tried putting it in a while loop

While 1
$ti = TimerInit()
While TimerDiff($ti) < 60 * 60 * 12000
Sleep(1000) 
WEnd

.......CODE

WEnd

but it doesnt parse correctly and i dont know whats wrong

Edited by BOUNCER

Share this post


Link to post
Share on other sites
yucatan

how do i run http://www.autoitscript.com/forum/index.ph...860&hl=SMTP

every 12 hours? i tried putting it in a while loop

While 1
$ti = TimerInit()
While TimerDiff($ti) < 60 * 60 * 12000
Sleep(1000) 
WEnd

.......CODE

WEnd

but it doesnt parse correctly and i dont know whats wrong

while true

if @hour = 12 then CODE

wend

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.