Hi Marco,
One possibility might be to use
Note that the engine only invokes the callback approximately once every two seconds, so this technique doesn't give you very precise pause/resume control.
Good luck!
One possibility might be to use
ScriptEngine.ContinuationCallback
. Your callback might look something like this:engine.ContinuationCallback = () => { while (ScriptIsPaused()) { Thread.Sleep(500); } returntrue; };
Good luck!