Kieran Posted October 20, 2008 Share Posted October 20, 2008 Hi, I'm new to AutoIT and how it works, but I get the basics very similar to Visual Basic, anyway I am wondering if I can make the program wait a few seconds as its working faster than my PC can load the program e.g run("cmd.exe") ***DELAY FOR A FEW SECONDS HERE*** send("Blah Blah") Send("{ENTER}") ***DELAY FOR A FEW SECONDS HERE*** Send("Blah Blah") send("{ENTER}") ***DELAY FOR A FEW SECONDS HERE*** Send("Blah Blah") Thanks, Kieran Link to comment Share on other sites More sharing options...
TehWhale Posted October 20, 2008 Share Posted October 20, 2008 Sleep(1000);1 second Sleep(20000);20 seconds Use the Sleep() command to pause your script for the specified time. Link to comment Share on other sites More sharing options...
Kieran Posted October 20, 2008 Author Share Posted October 20, 2008 Sleep(1000);1 second Sleep(20000);20 seconds Use the Sleep() command to pause your script for the specified time. Thankyou Link to comment Share on other sites More sharing options...
Minikori Posted October 20, 2008 Share Posted October 20, 2008 Hi,I'm new to AutoIT and how it works, but I get the basics very similar to Visual Basic, anyway I am wondering if I can make the program wait a few seconds as its working faster than my PC can load the program e.grun("cmd.exe")***DELAY FOR A FEW SECONDS HERE***send("Blah Blah")Send("{ENTER}")***DELAY FOR A FEW SECONDS HERE***Send("Blah Blah")send("{ENTER}")***DELAY FOR A FEW SECONDS HERE***Send("Blah Blah")Thanks,KieranYou do realize AutoIt comes with a help file, right? Still, this question has been asked 1000 times in this forum. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com 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