Jump to content
LaunchBox Community Forums

Closing Sinden App


Metamonk

Recommended Posts

Hi all,

I have been having so many issues with trying to make my arcade cabinet a "set it and forget" when using Big Box with the Sinden Lightgun; either Sinden doesn't start automatically when I turn on my computer, and if it does, then the border doesn't work, or if I do set up everything first, then when I go back into Big Box, some P.C. games that worked fine before, suddenly only play in the background. It's been very frustrating!

I saw that some users recommend launching the Sinden app just for lightgun games using the Additional Apps feature from LaunchBox, (which would be awesome!), but I'm not sure how I would close the app when I exit out of the game. It looks like some people use AHK or create BAT files (neither of which I've had much luck with making in the past), or they write an exit script (which I don't see how to do for individual games).

Would anyone please be able to tell me if it would work to just add the Sinden app to individual games, and then what would be the easiest most simple way of automatically closing the app when I exit out of the game?

Thank you so much for your time and help!   

Link to comment
Share on other sites

  • 2 weeks later...

Hop on the discord if you want specific answers. It's pretty easy to create 2 separate autohotkey scripts, one to launch the software:

Run, Run, C:\arcade\sinden\Player1.lnk

and one to close it:

Process,Close,Lightgun.exe
Run,taskkill /im "Lightgun.exe" /F

WinActivate LaunchBox Big Box ;this line might not be needed but it can't hurt either.

You can use one as the startup app and one as the exit app. It's weird you mention Windows games not being in focus. I would try creating a shortcut to the lightgun.exe file and right clicking>properties>target and add -silent to the end of the target so it looks like this: C:\arcade\sinden\player1\Lightgun.exe -silent

 

That way the shortcut will launch the Sinden software minimized. I know there are some issues with the current software minimizing to tray so keep that setting off. Keeping the software minimized might help with the Windows games playing in the background. 

 

Link to comment
Share on other sites

  • 6 months later...
6 hours ago, atalec said:

Hi everyone,

I want to launch Sinden App when I launch a rail gun shooter but not for other game type.

But,  I can't put a ahk script for a game, only for emulator that's right ?

Someone help me please ?

Thx

You can use additional apps for this purpose.  You'll need to create 2 additional apps (AHK scripts) to do what you're wanting.  One that will Automatically Run Before Main Application (load the Sinden app) and that will Automatically Run After Main Application (close the Sinden app).

Create the 2 respective AHK scripts and then add them to your game as outlined here.  

Check the appropriate box to run Before/After for each additional app.

 

  • Like 1
Link to comment
Share on other sites

1 hour ago, atalec said:

Ok I follow what you say. 

My sinden app launch correctly but when I exit game with alt+F4 or esc, the process is not killed and if I want to launch another rail shooter my sinden can't start again and give me an issue. 

Thx

Can you show me both your scripts? (the one that loads it and the one that [is supposed to] kill it)

Can you also show screenshots of the 2 Additional Apps?  Edit each Additional App and share those [edit] screens.

Link to comment
Share on other sites

Ok, this is my scripts 

To launch sinden app

Run, D:\LaunchBox\Sinden Player 1.lnk,,Min

To Stop app

~Esc::
    Process,Close,Lightgun.exe
    Run,taskkill /im "Lightgun.exe" /F
    sleep, 500
    ExitApp
return

And the 2 screenshots 

start.thumb.png.61259fea0d7bff686f5de5116a96152f.pngstop.thumb.png.74b0fbdf0bf77ec99661217cebd0f85c.png

 

Thanks for your help

  • Unusual Gem 1
Link to comment
Share on other sites

1st thought is to change    ~Esc::   to    $Esc::

If that still don't work, verify that the exit script is even getting touched.  After the $Esc:: line, add in something like "SoundBeep,1000,500".  Add it several times if you'd like.  Then when in the game, press ESC and see if you hear the beeps.  If you press ALT+F4, it won't work.

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