Jump to content

Need help with a simple script...


Guest Ordano
 Share

Recommended Posts

Guest Ordano

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
Link to comment
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.

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...