IfMsgBox
提供: AutoHotkey Wiki
実行制御 | GUI表示 | 演算・変数 | メモリ・DLL操作 | 文字列操作 |
キーボード | マウス | シェル | ウィンドウ | ウィンドウグループ
ステータスバー | コントロール | サウンド | ファイル | INIファイル |
レジストリ | 環境変数 | AutoHotkey | その他 | 設定関係 | オブジェクト
IfMsgBox[編集]
一番最近のMsgBoxコマンドで指定したボタンが押されたかどうかで分岐。
IfMsgBox, ButtonName
Parameters[編集]
引数名 | 説明 |
---|---|
ButtonName | 調べたいボタン名。Remarks参照。 |
Remarks[編集]
ButtonNameには以下のものを指定する。
Yes | はい |
No | いいえ |
OK | OK |
Cancel | キャンセル |
Abort | 中止 |
Ignore | 無視 |
Retry | 再試行 |
Continue | 続行 |
TryAgain | 再試行 |
Timeout | タイムアウトするまでボタンが押されなかった。 |
Related[編集]
Example(s)[編集]
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:
...