When I run an .exe file using ExecFile() from Blitz3D, the window with my game loses focus, even if the executable I'm running does not use any graphics functions.
if the blitzapp runs in windowed mode, then yes. If it was fullscreen then no since this will pause the blitzapp.
You can write a function in a decls file, I guess you need to use the PositionWindow Function, a function of the user32.dll AFAIK. I remember It tried this a long time ago, and Things like WindowSetfocus, BringWindowToTop, ShowWindow simply refused to work, so I used PositionWindow with the topmost parameter, this worked.
So you would need to run the other exe,then wait some seconds, then force the blitzapp to gain focus again.
thanks for the tip... unfortunately I can't get it to go back into focus. I can move my window around no problem (so i know the command works), but even so it stays deactivated.
I've found this in the forums as well, as an "unstick" function: