티스토리 뷰
#8.오토핫키 fileappend/fileread
안녕하세요 코드모아 입니다.
12월 29일 #8.오토핫키 fileappend/fileread 에대해 강의하겠습니다.
fileread : 파일읽기
fileappend : 파일쓰기
fileread(파일읽기)
문법 :
fileread,변수명,경로\파일이름.확장자
ex)
Gui, Add, Button, x30 y89 w250 h40 gbutton,버튼
Gui, Add, Text, x32 y19 w250 h30 vtext,
Gui, Add, Edit, x32 y49 w250 h30 vedit,
Gui, Show, w314 h152,코드모아
return
button:
gui,submit,nohide
fileread,file,코드모아.txt
guicontrol,,edit,%file%
guicontrol,,text,%file%
return
GuiClose:
ExitApp
"코드모아.txt" 파일안의 내용을 edit박스와 text박스로 출력
fileappend(파일쓰기)
문법 :
filappend,쓸내용,경로\파일이름.확장자
ex)
Gui, Add, Button, x30 y29 w250 h45 gbutton,버튼
Gui, Show, w314 h92,코드모아
return
button:
gui,submit,nohide
fileappend,오늘도 좋은하루!,코드모아.txt
return
GuiClose:
ExitApp
"코드모아.txt" 파일안의 내용에 "오늘도 좋은하루!" 입력
#8.오토핫키 fileappend/fileread 을마치겠습니다.
다음강의는 #9.오토핫키 Imagesearch 에대해 강의해보겠습니다.
질문 및 궁금한점은 댓글로남겨주세요.
=
'Autohotkey(오토핫키)' 카테고리의 다른 글
#10.오토핫키 pixelsearch (2) | 2017.12.30 |
---|---|
#9.오토핫키 Imagersearch (17) | 2017.12.29 |
#7.오토핫키 조건문 (0) | 2017.12.28 |
번외)중간점검 (2) | 2017.12.27 |
#6.오토핫키 연산자 (0) | 2017.12.27 |