Jump to content

Writing values from an array to corresponding fields.


Recommended Posts

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")

Link to comment
Share on other sites

  • Moderators

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?

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.

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