Jump to content
LaunchBox Community Forums

Escape from Demul


Recommended Posts

Hi,  I been mining along the forum, looking for a solution to when you launch a game via .bat to Demul.  Took me a while, but I sorted it out.   I just run it straight via bat file.  Game goes full screen, looks great and no losing of focus during game play on BB or LB.  Damn those gun games look and play great on Demul Naomi! 😃

Simply bat:

demul.exe -run=naomi -rom=cvs2

However, my problem is now closing the window when I escape.  I can't not seem to figure that out.  I tried copying some closing commands from the pre built emulators that sega Naomi and Dreamcast have... but alas....No joy.

 I tried this right below the line above and looks like this:

demul.exe -run=naomi -rom=cvs2
; This section closes Demul when pressing Escape
    Send !{F4}

Didn't work. =(

Can anyone help me figure out this last piece to my puzzle?  As always, Thanks guys! 


Link to comment
Share on other sites

I am having all kind of "lost focus" issues when I run Demul through BB or LB.  I ran it from LB with the bat and it works great.  I can play the games and never lose Window focus.  Only issue is that I can not seem to get either the .bat or an AHK script to send the ALT+F4 command to close Demul and return to LB or BB.  I am willing to try either but really would love to have it all in one .bat file for each Naomi 2 / Cave / AtomisWave. 

I know LB handles all that and it works fine...until in the middle of a great game of Lupin the third, it jumps to your desktop of a "Game over screen" from LB because it thinks I pressed escape.

Can you help?  Do you know what I am doing incorrect on the sample script above?  Thanks!

Edited by latin625
Link to comment
Share on other sites

1 hour ago, latin625 said:

I am having all kind of "lost focus" issues when I run Demul through BB or LB.

I myself would try to find out why LaunchBox or BigBox looses focus. I just saw a comment from somebody who solved it like this:


1 hour ago, latin625 said:

Only issue is that I can not seem to get either the .bat or an AHK script to send the ALT+F4 command to close Demul and return to LB or BB.

I am no bat file hero so I don't know how you can gracefully exit a program with bat files. But I know how you can start a game with a bat file and close it with AutoHotkey. If you start a game using a bat file, LaunchBox sees the bat file as the game. The bat file starts the game and then terminates and as far as LaunchBox is concerned, the game was terminated so exit scripts don't work anymore. But if you use bat files, you have them imported as games? Like windows games, you don't use an emulator for them? How have you set up the bat files to run from LaunchBox?


Because I myself don't experience loss of focus with Demul, how have you set up Demul in LaunchBox? Because if you could get Demul to run without problems from LaunchBox, that would be by far the easiest solution. If you want, could you provide screenshots like mine?





Also I have configured Demul to Launch fullscreen.

Edited by Koroth
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...