Sign in to follow this  
Followers 0
SofaKingWeTardEd

Repeat x Times?

6 posts in this topic

Hey, I was wondering if it's possible to do this:

Create a window that asks you how many times do you want to repeat the Script. Whatever number you enter, is how many times the script does it lol :P

I haven't got the script it's going to be used with, but i'm a lil confused. :D

So far, I think i'm using the wrong thing? I'm currently trying to do it with InputBox; to no avail! ;)

Thank you! :P

Share this post


Link to post
Share on other sites

$Number = InputBox("", "How many times repeat?", 1)
For $i = 1 To $Number
    ;Script here
Next

You are searching this?

It worked! YAY!!!

You're a genius ! :3

Thank you! :D:P;)

Yes, I am retarded. Lol :P

Share this post


Link to post
Share on other sites

Save yourself a line and a variable

(I know the question's already been answered)

For $i = 1 To InputBox("", "How many times repeat?", 1)
    ;Script here
Next

Share this post


Link to post
Share on other sites

Save yourself a line and a variable

(I know the question's already been answered)

For $i = 1 To InputBox("", "How many times repeat?", 1)
    ;Script here
Next
Not really that good an idea. What happens when I put 999999999999999 into the box? or "Hi there!" or I hit cancel?

Much better to get in the habit of error checking.

And @SofaKing, I believe the joke is supposed to go "Sofa King We Todd Did" isn't it? :D

Share this post


Link to post
Share on other sites

Not really that good an idea. What happens when I put 999999999999999 into the box? or "Hi there!" or I hit cancel?

Much better to get in the habit of error checking.

And @SofaKing, I believe the joke is supposed to go "Sofa King We Todd Did" isn't it? ;)

Hehe, yup :P But the irony of it is; I'm that retarded I got it wrong! :D ( intentionally misspelled my username ;) )

Thank you everyone, the function worked excellent! :P

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