Code: Select all
array:=["3279","23897","23897"]
n:=0
while(n<array.Length()){
++n
controlsettext, edit1, % array[n]`n`r, Untitled - Notepad
}
Code: Select all
3279
23897
23897
Code: Select all
array:=["3279","23897","23897"]
n:=0
while(n<array.Length()){
++n
controlsettext, edit1, % array[n]`n`r, Untitled - Notepad
}
Code: Select all
3279
23897
23897
Code: Select all
array:=["3279","23897","23897"]
n:=0, s:=""
while(n<array.Length())
++n, s.=array[n] "`r`n"
controlsettext, edit1, % s, Untitled - Notepad
Code: Select all
q:: ;array to variable
oArray := ["3279","23897","23897"]
vOutput := ""
Loop, % oArray.MaxIndex()
;Loop, % oArray.Length() ;this will also work
vOutput .= oArray[A_Index] "`r`n"
;Clipboard := vOutput
;MsgBox, % vOutput
;ControlSetText, Edit1, % vOutput, Untitled - Notepad ;set all of control's text
Control, EditPaste, % vOutput, Edit1, Untitled - Notepad ;insert text at cursor
return
Users browsing this forum: ht55cd3 and 266 guests