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

 All Forums
 Lua Scripts
 General Action Scripts
 Message Boxes Galore!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rob

USA
2516 Posts

Posted - 12/28/2011 :  17:02:18  Show Profile  Visit Rob's Homepage  Reply with Quote
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
2516 Posts

Posted - 12/29/2011 :  15:52:46  Show Profile  Visit Rob's Homepage  Reply with Quote
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  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000