AutoHotKey를 사용하는 사람들
오늘: 488
어제: 624
전체: 200,904
회원: 1,883
접속: 20 (회원 1)

IfMsgBox

원문보기
수정요청

Checks which button was pushed by the user during the most recent MsgBox command.

IfMsgBox, ButtonName

Parameters

ButtonName

One of the following strings to represent which button the user pressed in the most recent MsgBox command:

Yes
No
OK
Cancel
Abort
Ignore
Retry
Continue [v1.0.44.08+]
TryAgain [v1.0.44.08+]
Timeout (that is, the word "timeout" is present if the MsgBox timed out)

관련 명령어

MsgBox

예제

MsgBox, 4, , Would you like to continue?, 5  ; 5-second timeout.
IfMsgBox, No
    Return  ; User pressed the "No" button.
IfMsgBox, Timeout
    Return ; i.e. Assume "No" if it timed out.
; Otherwise, continue:
...

 

Copyright Tleap. All rights reserved.