Author Topic: Auto exit game when on idle for x amount of time  (Read 6424 times)

JayLie

  • Full Member
  • ***
  • Posts: 31
    • View Profile
Auto exit game when on idle for x amount of time
« on: May 19, 2021, 05:48:06 AM »
Hi, another useful feature that i cant find anywhere to implement in my build, "Auto exit game when on idle for x amount of time"

Cant someone please help me and perhaps alooot of others

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Auto exit game when on idle for x amount of time
« Reply #1 on: May 19, 2021, 09:05:42 AM »
external software, scripts:
Here

threads, themes:
Here

Workaround:
use screensaver of AM + Blank Screen Start Command (start taskkill command of OS to close running emulator).
Similar here
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

JayLie

  • Full Member
  • ***
  • Posts: 31
    • View Profile
Re: Auto exit game when on idle for x amount of time
« Reply #2 on: May 19, 2021, 12:56:09 PM »
threads, themes:
Here

I've just tested that timer.nut file, it does a good job, but it only takes you back to the display menu after x amount of idle time when you in another menu...and when you in game, it doesnt exit mame on idle....

JayLie

  • Full Member
  • ***
  • Posts: 31
    • View Profile
Re: Auto exit game when on idle for x amount of time
« Reply #3 on: May 19, 2021, 02:08:29 PM »
Workaround:
use screensaver of AM + Blank Screen Start Command (start taskkill command of OS to close running emulator).
Similar here

Okay, I've got my bat script working, it kills mame when I click on it and when a game is running so that part works, but ive got nooooo idea how to implement it in Attract mode, ive tried everything.....

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Auto exit game when on idle for x amount of time
« Reply #4 on: May 27, 2021, 11:25:56 AM »
workaround : external script that starts belong with your emulator.
Script that counts how long no entry has been made and kill the current emulator (pressing the escape-button or make a taskkill)

Since you are not happy about such solutions ("horrible methods", "dodgy 3rd party software", "buggy aswell", "not even working"):

AM is opensource & the stage is yours
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

JayLie

  • Full Member
  • ***
  • Posts: 31
    • View Profile
Re: Auto exit game when on idle for x amount of time
« Reply #5 on: June 09, 2021, 12:25:32 AM »
The reason I'm asking for these things are that 10yr old kids will be playing on an arcade machine in public running attract mode and mame on 2 cabinets.

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Auto exit game when on idle for x amount of time
« Reply #6 on: June 12, 2021, 02:53:03 PM »
with this plugin, you are able to start external scripts before emulator launch. and after emulator launch.

with this autoit-script, you are able to close a list of windows processes after reaching a specific idle time.
after closing the processes, you are back to AM game list.
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

JayLie

  • Full Member
  • ***
  • Posts: 31
    • View Profile
Re: Auto exit game when on idle for x amount of time
« Reply #7 on: June 18, 2021, 01:44:10 PM »
thank you, the script is awesome!