gagangoomer Posted March 11, 2013 Report Share Posted March 11, 2013 Hi All, Is there any way by which i can create a pop-up showing three options(Yes, No and N/A) instead of two (usually shows 2 options i.e Yes, No or True False etc.). When a user clicks on any option an event should fire depending on the option selected by user. I know how to use If Message option but it only shows max 2 options under it.The only one way that comes to my mind is giving a Multiple Choice Menu option. Is there other appropriate method how i can get the desired reults ? Thanks in Advance !! Gagan Quote Link to comment Share on other sites More sharing options...
Cory Posted March 11, 2013 Report Share Posted March 11, 2013 Not buttons like you want but you can do a Multiple Choice Menu. For this I usually create a simple WinForm app in .NET and run the program and run it with the External Script command. Quote Link to comment Share on other sites More sharing options...
gagangoomer Posted March 12, 2013 Author Report Share Posted March 12, 2013 I know it is possible though .net or VBA bt i want it in MEP. Quote Link to comment Share on other sites More sharing options...
terrypin Posted March 13, 2013 Report Share Posted March 13, 2013 Hi Gagan, You might check out an approach I used a while ago to handle 15 options. Your requirement would be much simpler, with a mere 3 options instead of 15. My macro displays this image: That shows 15 options, A to O. A mouse click switches the macro accordingly. In my case it positions the target window (a folder, program, etc) in the approprate screen position. The script is straightforward and looks like this: // Assumes target window is activated.Variable Set String %tCurrentWindow% to topmost window titleProgram Launch: "Grid+Letters.jpg" (Normal)Parameters:Wait for Window Title: Grid+Letters.jpg - IrfanViewWindow Move and Size: Move "<Current Window>" to (680,378) and size to 392 x 378 Wait for Left Mouse ClickGet Mouse Position into (nX, nY) Relative to ScreenIf Variable %nX% Is Greater Than "695" ANDIf Variable %nX% Is Less Than "774" ANDIf Variable %nY% Is Greater Than "478" ANDIf Variable %nY% Is Less Than "525" Variable Set String %tChoice% to "A"End If...There are 15 such tests. These are followed by 15 decision steps:Switch( %tChoice% )Case: A Macro Run: Current window 480x586 1of8End CaseCase: B Macro Run: Current window 480x586 2of8...Case: O Window Maximize: %tCurrentWindow%End CaseEnd Switch --Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted March 13, 2013 Report Share Posted March 13, 2013 That's intense Terry! Quote Link to comment Share on other sites More sharing options...
gagangoomer Posted March 14, 2013 Author Report Share Posted March 14, 2013 Thanks Terry, I'll try to implement the same concept in my macro. 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.