Jump to content
LaunchBox Community Forums
levi

Tip: Quit Game on Idle

Recommended Posts

I'm using BigBox on a cabinet in a semi public location.  If someone chooses a game and walks away, I didn't want MAME running indefinitely.  I would rather return to BigBox so the next person knows he can choose a game.  I used the following script to exit MAME if there is no input for two minutes.  In LaunchBox's Manage Emulators window, choose MAME and Edit Emulator.  Then, on the AutoHotkey Script tab, enter the following:

Quote

#Persistent
SetTimer, Check, 6000
return

Check:
IfGreater, A_TimeIdle, 120000, Process, Close, {{{StartupEXE}}}

Hope it works for someone else too!

Share this post


Link to post
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
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...