FEF
[1] "https://www.autohotkey.com/docs/v1/Variables.htm#concat"
[1] says...
Concatenate. The period (dot) operator is used to combine two items into a single string (there must be at least one space on each side of the period). You may also omit the period to achieve the same result (except where ambiguous such as x -y, or when the item on the right side has a leading ++ or --). When the dot is omitted, there should be at least one space between the items to be merged.
Example (expression method): Var := "The color is " . FoundColor
Example (traditional method): Var = The color is %FoundColor%
Sub-expressions can also be concatenated. For example: Var := "The net price is " . Price * (1 - Discount/100).
A line that begins with a period (or any other operator) is automatically appended to the line above it.
배열을 이용해서 입력하고 출력하고 싶다. 순환문에서 배열을 호출하는 방법도 궁금하고..
code example
!n::
zArray := ["aaa","bbb"]
znmb:=zArray.length()
ztmp :=""
loop, %znmb% {
ztmp .= A_index "." zArray[A_Index] "`n"
}
InputBox, zout, select number, %ztmp%
ztmp := zArray[zout]
MsgBox,% ztmp
Return
^ESC:: ExitApp
output, screenshot
'[PA] 업무자동화 > [AH]Autohotkey' 카테고리의 다른 글
AH ★코드 작성 포맷 기준★ (0) | 2023.03.11 |
---|---|
AH 계산기 만들기 (0) | 2023.03.11 |
AH detecting mouse click (0) | 2023.03.10 |
AH mutiple GUI in one script (0) | 2023.03.06 |
AH GUI file drag and drop (0) | 2023.03.06 |