In my C++ plugin I am loading several RhinoScript procedures using RhinoApp().RunScript() at startup, for example I pass the following as a string to RhinoApp().RunScript():
-_RunScript ( Sub MyHelloWorld() Rhino.Print "Hello World!" End Sub )
Afterwards I call these procedures from my plugin commands like this:
bool result = RhinoApp().RunScript(L"-_RunScript ( MyHelloWorld ))
This works perfectly well, I suppose this is also roughly the way the script compiler in Rhino 4 worked. There is just one thing I would like to achieve:
How is it possible to prevent RhinoApp().RunScript being cancelled by the user using ESC?