Mike23 Posted April 21, 2009 Posted April 21, 2009 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
Valuater Posted April 21, 2009 Posted April 21, 2009 This works #include <array.au3> Local $avArray = StringSplit("JPM" & Chr(44) & _ "Holger" & Chr(44) & _ "Jon" & Chr(44) & _ "Larry" & Chr(44) & _ "Jeremy", ",") _ArrayDisplay($avArray) 8)
Mike23 Posted April 21, 2009 Author Posted April 21, 2009 (edited) 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 April 21, 2009 by Mike23
Mike23 Posted April 21, 2009 Author Posted April 21, 2009 nvm sorry didn't see the send command in a reply. ty for your info everything works now
Qousio Posted April 21, 2009 Posted April 21, 2009 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] )
Valuater Posted April 21, 2009 Posted April 21, 2009 English = ControlSend("Untitled -", "", "Edit1", "New Text") 8)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now