Sign in to follow this  
Followers 0
Leeman73

Writing values from an array to corresponding fields.

2 posts in this topic

This is the second part to my earlier problem to put in values in an array.

Now that I have 6 strings in an array, I would like to go to a second program and write the values into a field as determined by a mouse position and the corresponding array value.

Can anyone help this newbie?

#include <Array.au3>

Dim $avArray[6]

sleep(2000)

MouseClick("left", 312, 466, 3)

Send("^c")

$avArray[0] = ClipGet()

Send("{TAB}")

Send("^c")

$avArray[1] = ClipGet()

Send("{TAB}")

Send("^c")

$avArray[2] = ClipGet()

Send("{TAB}")

Send("^c")

$avArray[3] = ClipGet()

Send("{TAB}")

Send("^c")

$avArray[4] = ClipGet()

Send("{TAB}")

Send("^c")

$avArray[5] = ClipGet()

_ArrayDisplay($avArray,"Display List")

MouseClick("left", 360, 303, 2)

Send("^p")

Share this post


Link to post
Share on other sites



Have you considered using ControlSetText() or ControlSend()? This way you can just move on down the controls and through the array... And not concern yourself if your mouse is in the correct position?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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