Jump to content

Assign Values from Array


Hoth2001
 Share

Recommended Posts

I've created a 2d array from an external csv file

#include<file.au3>

local $aArray

_FileReadToArray("C:\Users\User\Desktop\Planets.csv" , $aArray, 0, ",")

You can see how the array looks and is organized from the attachment below

Now what I would like to using elements from my array insert them into places of my code where I am using "Send" to input information into an external program.

 

Here is my code:

;~ ;PLANET RATE OF CHANGE MAXIMUM
MouseClick('primary', 320,156, 1, 0)
Sleep(300)
Send("{DELETE}")
Send("{DELETE}")
Send("{DELETE}")
sleep(200)
Send("7")    ;<-------- want to substitute with an array element here
Send("{TAB}")
sleep(500)

;POSITIVE CALCULATION DATE RANGE
;month
Send("01")   ;<-------- want to substitute with an array element here
Send("{RIGHT}")
;date
Send("01")   ;<-------- want to substitute with an array element here
Send("{RIGHT}")
;year
Send("2011")   ;<-------- want to substitute with an array element here
Send("{TAB}")

Thanks for all the help!!

Array.png

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...