Skip to content

Instantly share code, notes, and snippets.

@emisjerry
Created December 11, 2019 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emisjerry/3cf3604999cbba22440fbadc7080de24 to your computer and use it in GitHub Desktop.
Save emisjerry/3cf3604999cbba22440fbadc7080de24 to your computer and use it in GitHub Desktop.
; 彈出選擇視窗,選擇後傳出ErrorLevel
#SingleInstance Force
; Y/N/Cancel=3, 問號圖示=32, 預設按鈕2=256.
; 3+32+256=291
MsgBox, 291,, 是否繼續執行? (點擊 是 或 否)
IfMsgBox Yes
{
;MsgBox You pressed Yes.
ExitApp, 1
}
else IfMsgBox No
{
;MsgBox You pressed No.
ExitApp, 2
}
Else
{
ExitApp, 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment