all already tried before posting (autoit, vbs, /min command).
even invisible compiled bat2exe
then I have used the plugins from
here again (based on ResFix.nut Plugin).
was able to start before:
system( "start /MIN \"\" \"C:\\attract\\JoyToKey\\JoyToKey.exe\" \"C:\\attract\\JoyToKey\\ZSNES.cfg\"" );
or
system( "start /MIN \"\" \"C:\\attract\\JoyToKey\\JoyToKey.exe\" \"C:\\attract\\JoyToKey\\" + fe.game_info( Info.Emulator )+ ".cfg\"" );
or
system( "\"C:\\attract\\scripts\\" + fe.game_info( Info.Emulator )+ "\\before.bat\"" );
and after:
system( "taskkill /F /IM JoyToKey.exe" );
or
system( "\"C:\\attract\\scripts\\" + fe.game_info( Info.Emulator )+ "\\after.bat\"" );
it works with focus, popups, no AM crash.
so there is something in ResFix.nut Plugin, that handle the correct focus?!
squirrel language is not my favourite and I'm not a squirrel expert