- Remove MsgBox smart comma handling.
- Remove A_MsgBoxResult.
- Change MsgBox usage as below (and InputBox and TrayTip further below).
Code: Select all
MsgBox Text [, Title, Options, ByRef Result]
Result := MsgBox(Text [, Title, Options, ByRef Result])
Most (but not all) commands/functions with return values put the OutputVar first and omit it in expression mode, but doing that for MsgBox would mean writing MsgBox,, quite often.
Options would be as it is now, or optionally a space-delimited list of more memorable string options. This is the part I'm not sure about - what string values to use. Currently I'm thinking this:
Code: Select all
OKCancel
AbortRetryIgnore
YesNoCancel
YesNo
RetryCancel
CancelTryAgainContinue
Iconx
Icon?
Icon!
Iconi
For the icons, I think a single character resembling the icon is more memorable and convenient than a word like Stop/Error/Hand. I considered not requiring "Icon", but x should be reserved for possible use positioning the MsgBox.
I think the other options are less frequently used and can stay as numbers. A string of options could also include numeric options, combined or individually (just as the Gui command allows style options).
InputBox and TrayTip would have consistent parameter ordering:
Code: Select all
InputBox, OutputVar [, Text, Title, Options, Default]
TrayTip [, Text, Title, Options]
This also makes TrayTip consistent with ToolTip and fixes the problem of TrayTip Some text not actually showing a TrayTip (it should be TrayTip Title, Some text in v1).