20210121 1056 

 

자료

[1] "autohotkey.com/board/topic/94482-count-number-of-specific-characters-in-the-clipboard/"

Count Number of Specific Characters in the Clipboard

▶ see the code in bold font below

 

`external" pc"`

`"find file name in a long sentence"`

`"Example"` zStr:="this is c\docu\book\test_file.doc  123byte"

WinActivate, Binary to Hex Editor

sleep, 500

send, ^{home}

send, {down}

send, {shift}+{end}

Clipboard=""

send, ^c

ClipWait

zStr:=Clipboard

StringReplace, zStr,zStr,\,\,UseErrorLevel

zNmb:=ErrorLevel


zPos1:=InStr(zStr,"\",false,1,zNmb)

zPos2:=InStr(zStr,"  ")

zLen:=zPos2-zPos1

zTmp:=SubStr(zStr,zPos1+1,zLen)

;MsgBox,% zNmb "`n" zPos1 "`n" zPos2 "`n" zLen "`n" zTmp

send, {alt}

send, f

send, {up} {up}

send, {enter}

send, C:\Users\kcchang\Downloads\

SendInput, %zTmp%

return

'[PA] 업무자동화 > [AH]Autohotkey' 카테고리의 다른 글

AH utils samsung tablet notebook  (0) 2021.02.01
AH cmd command  (0) 2021.01.29
AH send string one shot  (0) 2021.01.22
AH 문장 중에 따옴표 제거하기  (0) 2021.01.15
AH 계산식 수식 operation, default focus in GUI  (0) 2020.12.08
Posted by Weneedu
,


출처: https://privatedevelopnote.tistory.com/81 [개인노트]