Jump to content
Sign in to follow this  
wfcmod1

Hello to the auto it community. Could i get some help?

Recommended Posts

wfcmod1

ok... i have been reading through the manual but i just can not figure out how to do this all i need to make is a script that will repeatably hit a number (1-10 w/e doesn't matter) untill i decide to turn the script off i have found out how to send the key i just do not know how to make it repeat itself until i am finished.... also if there is a possible way i would like to add a pop up box that you can change the time limit between key strokes through this box.

if any1 could please help em this would be much appreciated

Share this post


Link to post
Share on other sites
qazwsx

while loop

hotkeyset

Autoit options

Koda

Gui in the helpfile

Share this post


Link to post
Share on other sites
wfcmod1

ok so will this work for just a continuous key stroke of the number 1?

While 1 <= -0

send("1")

sleep(5000)

WEnd

Share this post


Link to post
Share on other sites
qazwsx

no because one is not less than zero.

Share this post


Link to post
Share on other sites
wfcmod1

ok so i change the symbol to greater than and it will work...

Share this post


Link to post
Share on other sites
qazwsx

yes. Any true statement will make it loop. You could also simply put:

While 1
code...
Wend

Also, use code tags when posting code.

Share this post


Link to post
Share on other sites
wfcmod1

ok tyvm =)

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  

×