SofaKingWeTardEd Posted January 13, 2008 Posted January 13, 2008 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 I haven't got the script it's going to be used with, but i'm a lil confused. So far, I think i'm using the wrong thing? I'm currently trying to do it with InputBox; to no avail! Thank you!
Jex Posted January 13, 2008 Posted January 13, 2008 $Number = InputBox("", "How many times repeat?", 1) For $i = 1 To $Number ;Script here Next You are searching this? My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer
SofaKingWeTardEd Posted January 13, 2008 Author Posted January 13, 2008 $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! Yes, I am retarded. Lol
crzftx Posted January 13, 2008 Posted January 13, 2008 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
therks Posted January 13, 2008 Posted January 13, 2008 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 NextNot 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? My AutoIt Stuff | My Github
SofaKingWeTardEd Posted January 13, 2008 Author Posted January 13, 2008 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 But the irony of it is; I'm that retarded I got it wrong! ( intentionally misspelled my username )Thank you everyone, the function worked excellent!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now