HTML Prompt Problem with Cancel

I have created my first HTML prompt and I am having a problem with the Cancel Button.

button name="Cancel" type="button" onclick="window.KeyboardMaestro.Cancel('Cancel')">Cancel</button

But the macro dose not cancel it runs. What am I missing? Should the macro just cancel or do I have to do something else to check what button has been clicked?


No, that won't cancel the macro. You have to do something like this:



Thanks worked slick as ...

Awesome. Please mark my reply as the answer. :slight_smile:

I did not know about that. I marked it but it said you solved it post 2. How do I mark it to show post 1?


It looks correct now. Thanks!