tinman Posted October 15, 2008 Share Posted October 15, 2008 I'm having a problem putting a delay in my macro it needs to be basicly like this Send {2} <---------------A delay of 2 seconds Send {1} <---------------A delay of 10 seconds. Send {3} <---------------Another delay of 2 seconds Send {3} <---------------Another delay of 2 seconds Send {3} <------------- then i need an infinite loop Link to comment Share on other sites More sharing options...
DW1 Posted October 15, 2008 Share Posted October 15, 2008 The help file will get you through this no problem. Check out "Sleep()" for a delay and "While" for your loop. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
tinman Posted October 15, 2008 Author Share Posted October 15, 2008 believe me i have tried and tried. all day today. but i cant figure it out... i can get the keys to send but i cant get the... format i guess give me and example of the sleep and loop and ill put it in... ive to get sum sleep tonight gotta get up early for college in the morning. thanx tho Link to comment Share on other sites More sharing options...
DW1 Posted October 15, 2008 Share Posted October 15, 2008 HotKeySet( "{ESC}", "Leave" ) While 1 Send("{2}") Sleep(2000) Send("{1}") Sleep(10000) Send("{3}") Sleep(2000) Send("{3}") Sleep(2000) Send("{3}") Sleep(2000); <-- You didn't have a sleep here, but you might need it due to the loop WEnd Func Leave() Exit EndFunc AutoIt3 Online Help Link to comment Share on other sites More sharing options...
tinman Posted October 15, 2008 Author Share Posted October 15, 2008 *Bowing Down At Your Feet* Link to comment Share on other sites More sharing options...
DW1 Posted October 15, 2008 Share Posted October 15, 2008 ive to get sum sleep tonight gotta get up early for college in the morning.*Bowing Down At Your Feet*Bowing at MY feet? Man... you must be tired. Go get some sleep.. big day! AutoIt3 Online Help 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