Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

expertbuilder

[오토핫키] 문자열함수 본문

오토핫키 AutoHotKey

[오토핫키] 문자열함수

엑스퍼트빌더 2019. 3. 29. 12:49

문자위치 얻기


StringGetPos, OutputVar, InputVar, SearchText [, L#|R#, Offset]

Position := InStr(Haystack, Needle [, CaseSensitive?, StartingPos, Occurrence])

 

문자열분리

 

StringSplit, OutputArray, InputVar [, Delimiters, OmitChars]
Delimiters 가 생략되면, 모든문자가 배열요소가 된다.

 

Array := StrSplit(String , Delimiters, OmitChars)

Array := StrSplit(String , Delimiters, OmitChars, MaxParts := -1) ;

 

Colors = red,green,blue

StringSplit, ColorArray, Colors, `,

Loop, %ColorArray0%

{

this_color := ColorArray%A_Index%

MsgBox, Color number %A_Index% is %this_color%.

}

 

StringSplit, word_array, TestString, %A_Space%, . ; 점은 제외합니다.

word_array := StrSplit(TestString, A_Space, ".") ; 점은 제외합니다.

 

왼쪽에서, 오른쪽에서 글자 가져오기


StringLeft, OutputVar, InputVar, Count

StringRight, OutputVar, InputVar, Count

NewStr := SubStr(String, StartPos [, Length]) ; 자세한 것은 SubStr() 함수를 참조하십시오.

'오토핫키 AutoHotKey' 카테고리의 다른 글

[오토핫키] 버젼  (0) 2019.04.04
프로그램 일시정지, 종료  (0) 2019.04.02
[오토핫키]디버그모드  (0) 2019.03.29
[오토핫키] 프로그램실행, 제어  (0) 2019.03.21
[오토핫키]엑셀핸들링  (0) 2019.03.21