Sign in to follow this  
Followers 0
Leeman73

Return values into array and displaying them

3 posts in this topic

;I am trying to store in some variables in an array as shown in the code below. I am very new to this.

;The code is meant for the cursor to go to a mouse position, and then copy some text from different fields.

;I then want to display the information that is stored in the array, (just to make sure they are in memory)

;Also, how do I clear the memory after each script run?

#include <Array.au3>

Dim $email, $full_name, $street1, $street2, $city, $state, $post_code

Dim $avArray[6]

$avArray[0] = $full_name

$avArray[1] = $street1

$avArray[2] = $street2

$avArray[3] = $city

$avArray[4] = $state

$avArray[5] = $post_code

sleep(2000)

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

Send("^c")

$full_name = ClipGet()

Send("{TAB}")

Send("^c")

$street1 = ClipGet()

Send("{TAB}")

Send("^c")

$street2 = ClipGet()

Send("{TAB}")

Send("^c")

$city = ClipGet()

Send("{TAB}")

Send("^c")

$state = ClipGet()

Send("{TAB}")

Send("^c")

$post_code = ClipGet()

_ArrayDisplay($avArray,"Display List")

Exit

Share this post


Link to post
Share on other sites



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


[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

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

Thank you , You have been very helpful, and it works :whistle:

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