Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MBXCreateMsgbox(title, text, icon, type)
- {
- if icon = error
- {
- if type = YesNo
- {
- MsgBox, 20, %title%, %text%
- return
- }
- if type = Ok
- {
- MsgBox, 16, %title%, %text%
- return
- }
- if type = YesNoCancel
- {
- MsgBox, 19, %title%, %text%
- return
- }
- if type = AbortRetryIgnore
- {
- MsgBox, 18, %title%, %text%
- return
- }
- if type = CancelTryAgainContinue
- {
- MsgBox, 22, %title%, %text%
- return
- }
- if type = OkCancel
- {
- MsgBox, 17, %title%, %text%
- return
- }
- if type = RetryCancel
- {
- MsgBox, 21, %title%, %tex%
- return
- }
- }
- if icon = question
- {
- if type = Ok
- {
- MsgBox, 32, %title%, %text%
- return
- }
- if type = OkCancel
- {
- MsgBox, 33, %title%, %text%
- return
- }
- if type = AbortRetryIgnore
- {
- MsgBox, 34, %title%, %text%
- return
- }
- if type = YesNoCancel
- {
- MsgBox, 35, %title%, %text%
- return
- }
- if type = YesNo
- {
- MsgBox, 36, %title%, %text%
- return
- }
- if type = RetryCancel
- {
- MsgBox, 37, %title%, %text%
- return
- }
- if type = CancelTryAgainContinue
- {
- MsgBox, 38, %title%, %text%
- return
- }
- }
- if icon = excalmation
- {
- if type = Ok
- {
- MsgBox, 48, %title%, %text%
- return
- }
- if type = OkCancel
- {
- MsgBox, 49, %title%, %text%
- return
- }
- if type = AbortRetryIgnore
- {
- MsgBox, 50, %title%, %text%
- return
- }
- if type = YesNoCancel
- {
- MsgBox, 51, %title%, %text%
- return
- }
- if type = YesNo
- {
- MsgBox, 52, %title%, %text%
- return
- }
- if type = RetryCancel
- {
- MsgBox, 53, %title%, %text%
- return
- }
- if type = CancelTryAgainContinue
- {
- MsgBox, 54, %title%, %text%
- return
- }
- }
- if icon = Info
- {
- if type = Ok
- {
- MsgBox, 64, %title%, %text%
- return
- }
- if type = OkCancel
- {
- MsgBox, 65, %title%, %text%
- return
- }
- if type = AbortRetryIgnore
- {
- MsgBox, 66, %title%, %text%
- return
- }
- if type = YesNoCancel
- {
- MsgBox, 67, %title%, %text%
- return
- }
- if type = YesNo
- {
- MsgBox, 68, %title%, %text%
- return
- }
- if type = RetryCancel
- {
- MsgBox, 69, %title%, %text%
- return
- }
- if type = CancelTryAgainContinue
- {
- MsgBox, 70, %title%, %text%
- return
- }
- }
- }
- ; Extras
- wait(second)
- {
- sleep %second%000
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement