Sign in to follow this  
Followers 0
Guest Ordano

Need help with a simple script...

3 posts in this topic

#1 ·  Posted (edited)

Basicly I just need a program that does this:

Wait 30

Loop{

Hit Enter

Wait 1

Hit Enter

Wait 5

Hit Escape

}

If possible I need the program to end or pause when I hit a certain key...

Can anyone help me with this?

Edited by Ordano

Share this post


Link to post
Share on other sites



Have you taken a look at the helpfile? What you need to do is very simple, so you'll see examples of it in the manual. Read the "Using AutoIt" section if your new. You'll also find out how to loop in the Language Reference section. Sending keys and pausing are pretty basic things. There's also a command to set a command to a key, and you can probably use the handy search function of the helpfile as well to assist you on that one.


[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites

Something like this should give you a start...

HotKeySet("{F1}", "Terminate")


Sleep(3000)

$i = 0

While $i =0
Send("{ENTER}")
Sleep(1000)
Send("{ENTER}")
Sleep(5000)
Send("{ESC}")
WEnd

Func Terminate()
    Exit 0
EndFunc

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  
Followers 0