I’ve had to programmatically press the escape key in my plugin in the past. I think the reason I’ve had to do this has something to do with a command left hanging somewhere. I know the proper thing to do is find out where it happens and deal with it. But it is a bit of a needle in a haystack. So I am instead just pressing the escape key programmatically:
System.Windows.Forms.SendKeys.Send(“{ESCAPE}”)
This worked fine for Rhino 7, but it isn’t working in Rhino 8. I can do it manually by selecting the command prompt and pressing the escape key. But I need it to be automated. Perhaps it’s the selecting of the command prompt needing to be done that is the difference between rhino 7 and 8. Is there a way to programmatically select the command prompt? Or maybe another way to press the escape key programmatically?
Thank you,
Sam