질문과 답변
기 타 [AutoHotKey] 오토핫키 Edit 컨트롤에 대해
2021.03.28 12:59
Gui, Add, Edit , x20 y10 w200 h20 vCopyPath, c:\01 Portable
Gui, Show, x450 y324 h112 w386, 포터블 복사
MsgBox, 4,포터블 복사 여부, %CopyPath% 에 복사 시작하시겠습니까?
-----------------------------------------------------------------------
위와 같이 코딩했는데 메세지 창에 c:\01 Portable 에 복사 시작하시겠습니까? 고 나타나지 않습니다.
해결 방법이 있을까요?
Gui 폼이 Submit 안되어서 그렇습니다.
Gui, Add, Edit , x20 y10 w200 h20 vCopyPath, c:\01 Portable
Gui, Show, x450 y324 h112 w386, 포터블 복사
Gui, Submit, NoHide
MsgBox, 4, 포터블 복사 여부, %CopyPath% 에 복사 시작하시겠습니까?
return
Guiclose:
exitapp
또는 서밋 버튼을 추가하여...
Gui, Add, Edit , x20 y10 w200 h20 vCopyPath, c:\01 Portable
Gui, Add, Button, gPrintMsg, 메세지 출력
Gui, Show, x450 y324 h112 w386, 포터블 복사
return
PrintMsg:
Gui, Submit, NoHide
MsgBox, 4, 포터블 복사 여부, %CopyPath% 에 복사 시작하시겠습니까?
return
Guiclose:
exitapp