본문 바로가기
만드는 이야기/기타

오토핫키)메세지박스 띄우기

by LillyLt 2014. 3. 13.


메세지.ahk


;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 눌러서 여기까지 통과...




FunctionDecimal ValueHex Value
OK (that is, only an OK button is displayed)00x0
OK/Cancel10x1
Abort/Retry/Ignore20x2
Yes/No/Cancel30x3
Yes/No40x4
Retry/Cancel50x5
Cancel/Try Again/Continue (2000/XP+)60x6
Adds a Help button (see remarks below)163840x4000
   
Icon Hand (stop/error)160x10
Icon Question320x20
Icon Exclamation480x30
Icon Asterisk (info)640x40
   
Makes the 2nd button the default2560x100
Makes the 3rd button the default5120x200
   
System Modal (always on top)40960x1000
Task Modal81920x2000
Shows the MsgBox on default desktop
(Windows NT/2000/XP or later)
1310720x20000
Always-on-top (style WS_EX_TOPMOST)
(like System Modal but omits title bar icon)
2621440x40000
   
Make the text right-justified5242880x80000
Right-to-left reading order for Hebrew/Arabic10485760x100000