Martin Posted July 20, 2016 Report Share Posted July 20, 2016 Hello, how is it possible to react if someone presses the cancel button e.g. on a multiple choice menu. thank you greetings from Germany Martin Quote Link to comment Share on other sites More sharing options...
rberq Posted July 20, 2016 Report Share Posted July 20, 2016 This might work, depending on what windows and circumstances are involved: Use the Macro Express mouse locator tool to find the boundaries of the Cancel button, that is, where is it on the screen? Trigger a macro to start based on the window appearing. Wait for Left Mouse Button Click. Get mouse location and see if it is within the Cancel button area. P.S. If the multiple choice menu was displayed by Macro Express itself (Create a Multiple Choice Menu), then ignore the above idea, because ME has the option to return the word Cancel to the macro. Quote Link to comment Share on other sites More sharing options...
Samrae Posted July 21, 2016 Report Share Posted July 21, 2016 how is it possible to react if someone presses the cancel button e.g. on a multiple choice menu. There are a few ways to do this. Here is what I suggest: Variable Set String %Choice% to "CANCEL" // Set a default value for the Choice variable used in the Multiple Choice Menu command Multiple Choice Menu: Choose something // use %Choice% for the Destination Variable If Variable %Choice% Equals "CANCEL" // The CANCEL button was clicked End If If Variable %Choice% Equals "A" // Option A was chosen End If If Variable %Choice% Equals "B" // Option B was chosen End If In the On Error tab of the Multiple Choice Menu command look for "The dialog was cancelled" and choose "Ignore Error". Of course you will need to change the If statements if you use the "Save Item Text" and/or "Multiple Choice" options in the Multiple Choice Menu command 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.