App minimized when return from Execfile

BlitzPlus Forums/BlitzPlus Programming/App minimized when return from Execfile

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm trying to create a small frontend for MAME using BlitzPlus. I use the EXECFILE command to launch MAME with whatever ROM is chosen in the menu. Everything works perfect until I exit out of MAME. I would like to return back to the frontend but it jumps to the desktop. If I look in my systray the frontend is there, only minimized. When I double-click it it returns to full screen and continues running. Is there anyway of returning focus to the frontend app automatically? Here is an example:

Graphics 640,480
ExecFile("mame.exe dkongjr")
WaitKey()

The frontend and the mame.exe both reside in the same directory.