Jump to content
Sign in to follow this  
letmein

*noob* Help With Looping A Simple Script?

Recommended Posts

letmein

Right now I have a script that presses the up arrow, waits 2 seconds, then presses down arrow. How can i loop this?

Send("{UP}")
sleep(2000)
Send("{DOWN}")
sleep(2000)

Thanks in advance for any help.

Edited by letmein

Share this post


Link to post
Share on other sites
big_daddy

Right now I have a script that presses the up arrow, waits 2 seconds, then presses down arrow. How can i loop this?

Send("{UP}")
sleep(2000)
Send("{DOWN}")
sleep(2000)
While 1
Send("{UP}")
sleep(2000)
Send("{DOWN}")
sleep(2000)
Wend

Share this post


Link to post
Share on other sites
letmein

While 1
Send("{UP}")
sleep(2000)
Send("{DOWN}")
sleep(2000)
Wend
thank you :think:

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.