Jump to content
Sign in to follow this  
Mike23

basic script help :)

Recommended Posts

Mike23

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

Share this post


Link to post
Share on other sites
Valuater

This works

#include <array.au3>

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

_ArrayDisplay($avArray)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Mike23

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

Share this post


Link to post
Share on other sites
Mike23

nvm sorry didn't see the send command in a reply.

ty for your info ^_^ everything works now ;)

Share this post


Link to post
Share on other sites
Qousio

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

Share this post


Link to post
Share on other sites
Valuater

English =

ControlSend("Untitled -", "", "Edit1", "New Text")

8)


NEWHeader1.png

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.