Jump to content
Sign in to follow this  
Guest YawAKooL

Help for automating some process...

Recommended Posts

Guest YawAKooL

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!

Share this post


Link to post
Share on other sites
Westi

Send("{LCTRL down}");Holds key down
    Sleep(5000)
    Send("{LCTRL up}");Releases key

:)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.