Jump to content

Array, start not with a first element


Recommended Posts

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

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

Link to comment
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.
Link to comment
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.

Link to comment
Share on other sites

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...