Keeping Focus of a Window

Blitz3D Forums/Blitz3D Programming/Keeping Focus of a Window

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.

Is there a way to regain focus?