Jump to content

basic script help :)


Recommended Posts

heej all,

got a few questions ^_^ hope you guys can help me out.

i am looking for an array what i can fill like in "C"

example:

int aExample[4] = { 1,
                              2, 
                              77, 
                              40, 
                              12071 };

would be verry nice if i could wright every value on a new line.

i tryed the exampel from the help.

Local $avArray[5] = ["JPM", 
                     "Holger", 
                     "Jon", 
                     "Larry", 
                     "Jeremy"]

but it didn't work ;) like this.

my second question is

i open notepad.

now i wanne print

array[1] on line 1

array[2] on line 2

the enters are already there

i know how to get to the locations:

MouseClick("left", x, y) ;

i know how to get coords np there.

just need to know how i can print the array on that location.

already ty for your help.

mike23

Link to comment
Share on other sites

This works

#include <array.au3>

Local $avArray = StringSplit("JPM" & Chr(44) & _
                     "Holger" & Chr(44) & _
                     "Jon" & Chr(44) & _
                     "Larry" & Chr(44) & _
                     "Jeremy", ",")

_ArrayDisplay($avArray)

8)

ty it works great.

now just how i can "type" the text in notepad.

on the location of my mouse.

the stack view of the array is nice to but i need it for an other program ^_^

edit: example text = value in $avArray[1];

Edited by Mike23
Link to comment
Share on other sites

ty it works great.

now just how i can "type" the text in notepad.

on the location of my mouse.

the stack view of the array is nice to but i need it for an other program ^_^

edit: example text = value in $avArray[1];

Example for both arrays and stringsplits:

Global $Array[2]
$Array[0] = "12345"
$Array[1] = "text"
Global $Randomness[5] = ["","123,234","543,432","text,here","and,here"]
       $Random = Random(1, 4, 1)
        $Split = StringSplit($Randomness[$Random], ",")
ControlSend( "Безымянный - Блокнот", "", "Edit1", $Array[0] & $Array[1] & $Split[1] & $Split[2] )
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...