Author |
Topic |
|
Rob
USA
2615 Posts |
Posted - 12/28/2011 : 17:02:18
|
Here's a script which displays different message boxes depending on your selection:
iRes = acMessageBox("Yes or no", "Question", 291) if iRes == 2 then acMessageBox("Fine, just leave then!", "Hmph!",48) elseif iRes == 7 then acMessageBox("Aww, ok.", "Maybe next time...",64) elseif iRes == 6 then acMessageBox("Woot!", "Hell yea!",16) end
Remember that the number values are derived from http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505.aspx. The numbers listed on Microsoft's site are added up to achieve the desired combination. ALSO! The numbers on their site are in HEX, not decimal (integer). Open up a hex calculator to add the numbers and convert to decimal before adding to your script! |
|
Rob
USA
2615 Posts |
Posted - 12/29/2011 : 15:52:46
|
Also, remember that you could specify the message box type values in StrokesPlus.Lua so you don't have to look them up on Microsoft's site. |
|
|
|
Topic |
|
|
|