SergeySpandaryan Posted February 18, 2016 Share Posted February 18, 2016 Local $name[11] = [5], $count = 0 $name[0] = "a" $name[1] = "b" $name[2] = "c" $name[3] = "d" $name[4] = "e" $name[5] = "f" $name[6] = "g" $name[7] = "h" $name[8] = "i" $name[9] = "j" $name[10] = "k" Sleep(500) For $i in $name Sleep(500) ClipPut($i) Sleep(20) Send("+{INSERT}") Sleep(20) Send("{ENTER}") next How to start with 5th element? Link to comment Share on other sites More sharing options...
iamtheky Posted February 18, 2016 Share Posted February 18, 2016 use for..to instead of for..in https://www.autoitscript.com/autoit3/docs/keywords/For.htm ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
SergeySpandaryan Posted February 18, 2016 Author Share Posted February 18, 2016 I don't know how to do it. Link to comment Share on other sites More sharing options...
InunoTaishou Posted February 18, 2016 Share Posted February 18, 2016 Click that link, it will explain everything and your life will be complete. Link to comment Share on other sites More sharing options...
jdelaney Posted February 18, 2016 Share Posted February 18, 2016 What are you inputing into, a gui, or browser? There are more reliable ways to do so...such as ControlSetText, or one of the _IE functions. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
SergeySpandaryan Posted February 18, 2016 Author Share Posted February 18, 2016 55 minutes ago, InunoTaishou said: Click that link, it will explain everything and your life will be complete. I couldn't get it. 15 minutes ago, jdelaney said: What are you inputing into, a gui, or browser? There are more reliable ways to do so...such as ControlSetText, or one of the _IE functions. I'm trying to understand how not to start with the first element. Link to comment Share on other sites More sharing options...
jdelaney Posted February 18, 2016 Share Posted February 18, 2016 (edited) Local $a[5] = ['a','b','c','d','e'] For $i = 1 To UBound($a)-1 ConsoleWrite($a[$i] & @CRLF) Next Notice I'm starting at 1, which is the second element in the array (arrays are 0 based) Edited February 18, 2016 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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