Sign in to follow this  
Followers 0
nht3004

Is there any function like this?

7 posts in this topic

I wonder if there is any autoit function like setTimeOut() in javascript?

The function I mentioned would delay the time set before, example:

setTimeOut("MsgBox(0,'','Hello')", 1000) would delay 1000 miliseconds before says "Hello"!

Thanks for any help!


for(loop=0; loop<infinity; loop++) { alert('I love you'); }

Share this post


Link to post
Share on other sites



Check out the function "Sleep"

Bob


You can't see a rainbow without first experiencing the rain.

Share this post


Link to post
Share on other sites

Something like

Func hello($toSleep)

Sleep($toSleep)

MsgBox(0, "", "Hello")

EndFunc

Share this post


Link to post
Share on other sites

Something like

Func hello($toSleep)

Sleep($toSleep)

MsgBox(0, "", "Hello")

EndFunc

I've tried Sleep function but I'm stuck in a problem:

When I let users choose "Count down and refresh" for example in every 10 mins, I would use Sleep() 10 mins but in that 10 mins, users cannot cancel or exit (no longer interact with my form I mean), how can I fix it?

Thanks anyway!


for(loop=0; loop<infinity; loop++) { alert('I love you'); }

Share this post


Link to post
Share on other sites

AdlbEnable()


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

take a look!!!

Run("hh.exe mk:@MSITStore:"&@ProgramFilesDir&"\AutoIt3\AutoIt3.chm::/html/functions/Sleep.htm")
I don't know what you mean, could u show me details?

for(loop=0; loop<infinity; loop++) { alert('I love you'); }

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