gagangoomer Posted January 10, 2014 Report Share Posted January 10, 2014 Hi All, Wish you all a very Happy New Year Does anyone knows a way how to get a value from user in a MCM(Multiple Choice Menu) box. Till the time user doesn't select a value from the menu, the MCM box doesn't disappears. I've tried it for a input box and its working fine. But i'm not sure how to do it for a MCM box. Any Suggestions ? Gagan Quote Link to comment Share on other sites More sharing options...
gagangoomer Posted January 22, 2014 Author Report Share Posted January 22, 2014 Nobody has any idea about this ? Quote Link to comment Share on other sites More sharing options...
Samrae Posted January 22, 2014 Report Share Posted January 22, 2014 Open the macro file samples.mex. This macro file is installed when you install Macro Express Pro. It should be located in your "My Documents\Insight Software" folder. Look at the sample macros "Menu and Question" and "Multiple Choice Menu with Default". The first shows how to require a compulsory value. The second demonstrates the various options using Multiple Choice Menus. Quote Link to comment Share on other sites More sharing options...
gagangoomer Posted January 24, 2014 Author Report Share Posted January 24, 2014 Thanks for the replying Samrae. I checked both the macro's mentioned above but couldn't get a menu with compulsory value. I was able to cancel the MCM without a value and even click the OK button w/t any value. Mentioned below is the script which i piced from this macro. // Multiple Choice Menu exampleMultiple Choice Menu: Windows TypeIf Variable %T[1]% Contains "A" Variable Set String %T[3]% to "2000"End IfIf Variable %T[1]% Contains "B" Variable Set String %T[3]% to "XP"End IfIf Variable %T[1]% Contains "C" Variable Set String %T[3]% to "Server 2003"End IfIf Variable %T[1]% Contains "D" Variable Set String %T[3]% to "Vista"End IfIf Variable %T[1]% Contains "E" Variable Set String %T[3]% to "Server 2008"End IfIf Variable %T[1]% Contains "F" Variable Set String %T[3]% to "7"End IfIf Variable %T[1]% Contains "G" Variable Set String %T[3]% to "Server 2012"End IfIf Variable %T[1]% Contains "H" Variable Set String %T[3]% to "8"End IfIf Variable %T[1]% Contains "I" Variable Set String %T[3]% to "Server 2012 R2"End IfIf Variable %T[1]% Contains "J" Variable Set String %T[3]% to "8.1"End IfText Box Display: Windows Type// --------------------------------------------------------// Done// --------------------------------------------------------Text Box Display: Sample Macro: %MacroName%Unlock Keyboard and Mouse Quote Link to comment Share on other sites More sharing options...
Cory Posted January 24, 2014 Report Share Posted January 24, 2014 I can't understand your OP, can you reiterate? Is your question how to pre-select a value in a multiple choice dialog box? IE when the user prompted an item is already selected? I do this with all my multiple choice menus. A few even keep a tally of which are selected most frequently or the last selection and preselects that for the user. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.