msgbox autohotkey code example
Example: autohotkey MsgBox
MsgBox This is the 1-parameter method. Commas (,) do not need to be escaped.
MsgBox, 4, , This is the 3-parameter method. Commas (,) do not need to be escaped.
MsgBox, 4, , Do you want to continue? (Press YES or NO)
IfMsgBox No
return
MsgBox, 4, , 4-parameter method: this MsgBox will time out in 5 seconds. Continue?, 5
IfMsgBox Timeout
MsgBox You didn't press YES or NO within the 5-second period.
else IfMsgBox No
return