vincepr0 Posted February 23, 2018 Share Posted February 23, 2018 Please don't say read the help files and be nice. I am super new to doing this kind of stuff... I have tried and cannot find something that prompts a box that says: How many times do you want to loop? (then you type in a number like 12) and it loops 12 times. Here is my script below. I want to start this script, input the number of times I want to loop, and then start. Then it stops after it goes through that number of times. MouseClick("left",942,409,1) sleep(500) MouseClick("left",942,409,1) sleep(500) Send("{CTRLDOWN}{HOME}{CTRLUP}") sleep(500) Send("{CTRLDOWN}c{CTRLUP}") MouseClick("left",567,-833,1) sleep(500) Send("{CTRLDOWN}v{CTRLUP}") sleep(100) Send("{ENTER}") sleep(100) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("hardware{ENTER}") sleep(400) Send("{TAB}laptop{ENTER}") sleep(400) MouseClick("left",942,409,1) sleep(500) MouseClick("left",942,409,1) sleep(500) Send("{CTRLDOWN}{HOME}{CTRLUP}") sleep(100) Send("{RIGHT}") sleep(100) Send("{CTRLDOWN}c{CTRLUP}") sleep(400) MouseClick("left",642,-457,1) sleep(400) Send("{CTRLDOWN}v{CTRLUP}") sleep(400) MouseClick("left",942,409,1) sleep(500) MouseClick("left",942,409,1) sleep(500) Send("{CTRLDOWN}{HOME}{CTRLUP}") sleep(100) Send("{RIGHT}") sleep(100) Send("{RIGHT}") sleep(100) Send("{CTRLDOWN}c{CTRLUP}") sleep(400) MouseClick("left",642,-457,1) sleep(400) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("{ENTER}") sleep(400) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("{TAB}") sleep(100) Send("{CTRLDOWN}v{CTRLUP}") sleep(400) Send("{TAB}") sleep(100) Send("{ENTER}") sleep(400) MouseClick("left",942,409,1) sleep(500) MouseClick("left",942,409,1) Send("{CTRLDOWN}{HOME}{CTRLUP}") sleep(100) Send("{SHIFTDOWN}{RIGHT}{RIGHT}{SHIFTUP}{CTRLDOWN}-{CTRLUP}") sleep(100) Send("{ENTER}") sleep(100) MouseClick("left",411,-937,1) Link to comment Share on other sites More sharing options...
Danp2 Posted February 23, 2018 Share Posted February 23, 2018 RTFM. Look up InputBox in the help file. Earthshine 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Zedna Posted February 23, 2018 Share Posted February 23, 2018 Look at function InputBox() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
vincepr0 Posted February 23, 2018 Author Share Posted February 23, 2018 thats all i needed. thanks I don't know your nerd lingo. Link to comment Share on other sites More sharing options...
Danp2 Posted February 23, 2018 Share Posted February 23, 2018 10 minutes ago, vincepr0 said: thats all i needed. thanks I don't know your nerd lingo. http://lmgtfy.com/?q=rtfm Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Earthshine Posted February 24, 2018 Share Posted February 24, 2018 (edited) When I see this kind of laziness I reach for the ignore button. RTFM Edited February 24, 2018 by Earthshine Danp2 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 25, 2018 Moderators Share Posted February 25, 2018 Earthshine, Despite the OP's rather insulting classification of forum members as "nerds" we should still remain polite. Please refrain from adding posts such as the one above which says more about you than the OP. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
rudi Posted February 26, 2018 Share Posted February 26, 2018 (edited) Hi. Welcome to the forum. If you want to do a loop 12 times, then use a "for" loop. With an option to specify first, how many loops shall be done, this would come out to some code like this: $LoopCount=InputBox("How many loops shall be done?","Enter number",12) for $i = 1 to $LoopCount MsgBox(0,"Loop counter","This is loop #" & $i) ; your code goes here. Next regards, Rudi. PS: I don't take "nerd" as an insult ;-) have fun! Edited February 26, 2018 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
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