오토잇 기초 강좌 - 외부 환경파일 만들기 (.ini 연동) 정보
오토잇 기초 강좌 - 외부 환경파일 만들기 (.ini 연동)
본문
iniWrite("config.ini", "test", "test", "값1") ; conf.ini를 생성하고 데이터를 입힌다. "파일위치&파일명", "세션", "키", "값"IniRead("config.ini", "test", "test", ""); conf.ini를 읽는다 "파일위치&파일명", "세션", "키", "값"$load_init = IniRead("config.ini", "test", "test", "") ; config.ini에 test세션에 test키의 값을 $load_init에 할당한다.
GUICtrlCreateLabel($load_init,100,50,320,30) ; 위에서 할당한 것을 출력한다$ini_file = FileExists("config.ini") ; 파일이 있는지 확인한다.
if $ini_file = 1 Then ; 파일이 있다면(1) 파일 있수를 출력
GUICtrlCreateLabel("파일있수",100,50,320,30)
Else ; 파일이 없다면 파일없수를 출력
GUICtrlCreateLabel("파일없수",100,50,320,30)
EndIf
if $ini_file = 1 Then ; 파일이 있다면(1) 파일 있수를 출력
GUICtrlCreateLabel("파일있수",100,50,320,30)
Else ; 파일이 없다면 파일없수를 출력
GUICtrlCreateLabel("파일없수",100,50,320,30)
EndIf
추천
0
0
댓글 0개