Make a macro for cancel all

Hi Forum, I often need to hit the cancel button to get out of Vray or other commands. I want to make a macro to put on a Connexcion space mouse , somewhere close at hand . Going to it on the standard tab takes my concentration away having to run to it when needed. Escape works on some things ,which I use.
Anyone out there who knows how to make a macro for this ? @martinsiegrist is the first person I thought of . Thank you in advance for any help.—Mark

Hello- '_Cancel should do it.

-Pascal

1 Like

Thank you, that was easy enough.—-Mark

Hi Pascal, it does cancel , but I still need to hit Enter for it to complete. Is there a way to make it a one hit cancel? Thank you, Mark

Hi Mark -

Binding Cancel to the RMB seems to do the work on a regular mouse and both command-line and dialog box commands that I tried.
image

What happens when you use '_Cancel Enter?
-wim

Hi Wim, before asking , I tried _CancelEnter. I will try it with the space between the l and e.Thank you