This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 Message Boxes Galore!
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rob

USA
2615 Posts

Posted - 12/28/2011 :  17:02:18  Show Profile  Visit Rob's Homepage
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  Show Profile  Visit Rob's Homepage
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000