nht3004 Posted June 10, 2009 Share Posted June 10, 2009 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'); } Link to comment Share on other sites More sharing options...
YellowLab Posted June 10, 2009 Share Posted June 10, 2009 Check out the function "Sleep" Bob You can't see a rainbow without first experiencing the rain. Link to comment Share on other sites More sharing options...
Lars Posted June 10, 2009 Share Posted June 10, 2009 Something like Func hello($toSleep) Sleep($toSleep) MsgBox(0, "", "Hello") EndFunc Link to comment Share on other sites More sharing options...
nht3004 Posted June 11, 2009 Author Share Posted June 11, 2009 Something likeFunc hello($toSleep) Sleep($toSleep) MsgBox(0, "", "Hello")EndFuncI'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'); } Link to comment Share on other sites More sharing options...
DCCD Posted June 11, 2009 Share Posted June 11, 2009 take a look!!! Run("hh.exe mk:@MSITStore:"&@ProgramFilesDir&"\AutoIt3\AutoIt3.chm::/html/functions/Sleep.htm") [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 11, 2009 Moderators Share Posted June 11, 2009 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. Link to comment Share on other sites More sharing options...
nht3004 Posted June 11, 2009 Author Share Posted June 11, 2009 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'); } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now