Gain foreground on batch interruption

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
I have a dialog-based plugin which can cause a batch file to be run (with Command()). When it interrupts execution (with GenerateConsoleCtrlEvent()) TCC steals the foreground. Is there a way my plugin can prevent that.