App minimized when return from Execfile

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

Catdaddy(Posted 2004) [#1]
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.


Catdaddy(Posted 2004) [#2]
You guys are a big help. Thanks. No wonder this is the premiere programming language.


LineOf7s(Posted 2004) [#3]
Try running your front-end in Windowed mode - I don't have BlitzPlus, but it certainly works better when returning from ExecFile when using Blitz2D.