Sign in to follow this  
Followers 0
SergeySpandaryan

Array, start not with a first element

7 posts in this topic

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?

Share this post


Link to post
Share on other sites




,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

I don't know how to do it.

Share this post


Link to post
Share on other sites

Click that link, it will explain everything and your life will be complete.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 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.

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