;MsgBox, Text
;메세지 띄우기,내용
;MsgBox [, Options, Title, Text, Timeout]
;메세지 띄우기[,버튼 종류 설정(링크 참조),메세지타이틀,메세지내용,시간제한(단위:초)]
;http://www.autohotkey.com/docs/commands/MsgBox.htm 참조
;주의: 주석을 쓸때 ";"를 변수 바로 뒤에 붙이지 말것
/* 예)
IfMsgBox, No; 버그 발생
IfMsgBox, No ; 버그 안발생
*/
MsgBox, 4, , 난 세상의 중심이다 동의 하는가 ? `n 제한 시간은 5초다 그전에 대답하라 , 5 ; 5-second timeout.
IfMsgBox, No ; No 를 선택했을 경우
MsgBox, 나도 아니라고 생각한다.
Return
IfMsgBox, Timeout ; 5초가 지났을 경우
MsgBox, 엥.. 넌 포기자냐..
Return
MsgBox, Yes 눌러서 여기까지 통과...
Function | Decimal Value | Hex Value |
OK (that is, only an OK button is displayed) | 0 | 0x0 |
OK/Cancel | 1 | 0x1 |
Abort/Retry/Ignore | 2 | 0x2 |
Yes/No/Cancel | 3 | 0x3 |
Yes/No | 4 | 0x4 |
Retry/Cancel | 5 | 0x5 |
Cancel/Try Again/Continue (2000/XP+) | 6 | 0x6 |
Adds a Help button (see remarks below) | 16384 | 0x4000 |
Icon Hand (stop/error) | 16 | 0x10 |
Icon Question | 32 | 0x20 |
Icon Exclamation | 48 | 0x30 |
Icon Asterisk (info) | 64 | 0x40 |
Makes the 2nd button the default | 256 | 0x100 |
Makes the 3rd button the default | 512 | 0x200 |
System Modal (always on top) | 4096 | 0x1000 |
Task Modal | 8192 | 0x2000 |
Shows the MsgBox on default desktop (Windows NT/2000/XP or later) | 131072 | 0x20000 |
Always-on-top (style WS_EX_TOPMOST) (like System Modal but omits title bar icon) | 262144 | 0x40000 |
Make the text right-justified | 524288 | 0x80000 |
Right-to-left reading order for Hebrew/Arabic | 1048576 | 0x100000 |
'만드는 이야기 > 기타' 카테고리의 다른 글
오토핫키) loop 일반 루프, 파일 갯수만큼 루프 (0) | 2014.03.13 |
---|---|
오토핫키) 인풋 박스 (0) | 2014.03.13 |
오토핫키)이미지랑 일치하는 위치 클릭하기 (0) | 2014.03.13 |
오토핫키,autohotkey) 메모장에 1부터 100까지 쓰기 , WinGetActiveTitle (0) | 2014.03.13 |
ship (0) | 2014.02.26 |