Jump to content
LaunchBox Community Forums

Exiting Sega Model 3 via controller (not ESC key)


LMD75

Recommended Posts

Is it possible to exit the Sega Model 3 emulator via the game controller?

I know its possible via the keyboard by doing this adding a script:

; This section closes Sega Model 3 Emulator when pressing Escape
$Esc::
{
    Process, Close, {{{StartupEXE}}}

Link to comment
Share on other sites

Hi Retro808 - I don't understand as the only thing in Input > Automation within Launchbox that is related to exiting is "close the active window".  Could you explain in a little more detail?  Much appreciated.

Link to comment
Share on other sites

1 hour ago, LMD75 said:

Hi Retro808 - I don't understand as the only thing in Input > Automation within Launchbox that is related to exiting is "close the active window".  Could you explain in a little more detail?  Much appreciated.

That "Close the active window" setting is what will close the emulator. When you are playing a game that is the "active window". So in the controller automation you want to bind a button to the "Hold This Button" then bind a button to the "Close the active window". In my image I have to hold button 7 first then press button 8 and Model3 emulator will shutdown. 

Screen Shot 2019-07-02 at 1.11.42 PM.png

Link to comment
Share on other sites

Thanks.  That part is clear.  How about the script? Does the text "StartupEXE" need replacing with "supermodel.exe"?

Also Supermodel still terminates with the Esc key without the script!

; This section closes Sega Model 3 Emulator when pressing Escape
$Esc::
{
    Process, Close, {{{StartupEXE}}}

Link to comment
Share on other sites

The automation is hit or miss.  I have tested this by running Launchbox and opening File Explorer and pressing the hot key+button to close File Explorer.  Sometimes it works and other times it does not.  However each time I press the hotkey+button I briefly see the "hour glass" /windows circle on the mouse pointer so I know its doing something.

 

However this does not close a full screen or windowed Supermodel emulator.

Link to comment
Share on other sites

1 hour ago, LMD75 said:

The automation is hit or miss.  I have tested this by running Launchbox and opening File Explorer and pressing the hot key+button to close File Explorer.  Sometimes it works and other times it does not.  However each time I press the hotkey+button I briefly see the "hour glass" /windows circle on the mouse pointer so I know its doing something.

 

However this does not close a full screen or windowed Supermodel emulator.

It works perfectly on my end for fullscreen or windowed Super Model 3 emulator. No hit or miss. What controller are you using? Could customize an AHK to work, what are the button #’s you are using for “hold” and “close”?

Here is how I have it set both my controller automation and the AHK in the emulator. Settings in the emulator itself are basic settings. 

 

Screen Shot 2019-07-02 at 3.44.42 PM.png

Screen Shot 2019-07-02 at 1.11.42 PM.png

Link to comment
Share on other sites

OS:Win10

Controller: PS4 Dual Shock 4

Not using 0.2a 64-bit version.  Using a later version. Are you using 0.2a?

I am going to unbind all of the buttons within Supermodel and see if it helps plus install 0.2a 64-bit.

Link to comment
Share on other sites

17 hours ago, LMD75 said:

OS:Win10

Controller: PS4 Dual Shock 4

Not using 0.2a 64-bit version.  Using a later version. Are you using 0.2a?

I am going to unbind all of the buttons within Supermodel and see if it helps plus install 0.2a 64-bit.

Yes, using 0.2a but I just tested with 0.1.1a and no issues. There is a slight delay with a black screen before closing, but it closes from both full screen and windowed. 

Link to comment
Share on other sites

Finally after some perseverance I have managed to get it working.

1. I configured the PS button (Button 13) as the Hotkey and "Options" (Button 10) to "close the active window".

image.thumb.png.03ee12982153e4b4b939a067fc6f41fc.png 2. In the Exit AutoHotKey Script tab for Supermodel3, I inserted the line "Process, close, supermodel.exe"

image.thumb.png.d2359140875ce9d1a31bd9389327d997.pngThis works. :)

Edited by LMD75
  • Like 1
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.

Guest
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...