Sign in to follow this  
Followers 0
Hoth2001

Assign Values from Array

2 posts in this topic

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

Share this post


Link to post
Share on other sites



got it. nevermind! 

 

the pains of being a beginner!

thanks for the help so far!

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