Guest YawAKooL Posted March 21, 2005 Share Posted March 21, 2005 Hello! I'm totally new to any programming language, AutoIt! is my first one. I want to do the following: First wait 5 seconds. Then press and hold down LCTRL for 5 seconds. Press and hold down LEFT for 3 seconds. Press and hold down LCTRL for 5 seconds. Wait 2 seconds and then... Press and hold down LCTRL for 5 seconds. THen again LEFT for 3 seconds. This for 10 minutes, then... Press DEL 4 times for 300ms each. Then again begin with the first command (LCTRL for 5 sec). And that in an infinite loop, until I press "ESC" to stop it. I think thats a good beginning to learn all important to me options. But im stuck, I just can't figure some things out. Thats what I have by now: Opt("SendKeyDownDelay", 1) Opt("SendKeyDelay", 500) Sleep(5000) Send ("{LCTRL down}") Sleep(5000) Send ("{LCTRL up}") But that already doesn't work! It just presses LCTRL 1 time and stops. Please help! I'm frustrated! Link to comment Share on other sites More sharing options...
Westi Posted March 21, 2005 Share Posted March 21, 2005 Send("{LCTRL down}");Holds key down Sleep(5000) Send("{LCTRL up}");Releases key 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