Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: JayLie on May 19, 2021, 05:48:06 AM

Title: Auto exit game when on idle for x amount of time
Post by: JayLie 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
Title: Re: Auto exit game when on idle for x amount of time
Post by: hermine.potter on May 19, 2021, 09:05:42 AM
external software, scripts:
Here (http://forum.attractmode.org/index.php?topic=1803.0)

threads, themes:
Here (http://forum.attractmode.org/index.php?topic=1826.0)

Workaround:
use screensaver of AM + Blank Screen Start Command (start taskkill command of OS to close running emulator).
Similar here (https://forum.attractmode.org/index.php?topic=3958.msg27657#msg27657)
Title: Re: Auto exit game when on idle for x amount of time
Post by: JayLie on May 19, 2021, 12:56:09 PM
threads, themes:
Here (http://forum.attractmode.org/index.php?topic=1826.0)

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....
Title: Re: Auto exit game when on idle for x amount of time
Post by: JayLie 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 (https://forum.attractmode.org/index.php?topic=3958.msg27657#msg27657)

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.....
Title: Re: Auto exit game when on idle for x amount of time
Post by: hermine.potter 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") (http://forum.attractmode.org/index.php?topic=2324.msg27822#msg27822):

AM is opensource & the stage is yours (https://github.com/mickelson/attract/wiki)
Title: Re: Auto exit game when on idle for x amount of time
Post by: JayLie 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.
Title: Re: Auto exit game when on idle for x amount of time
Post by: hermine.potter on June 12, 2021, 02:53:03 PM
with this plugin (http://forum.attractmode.org/index.php?topic=3918.0), you are able to start external scripts before emulator launch. and after emulator launch.

with this autoit-script (http://forum.attractmode.org/index.php?topic=1803.msg12710#msg12710), 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.
Title: Re: Auto exit game when on idle for x amount of time
Post by: JayLie on June 18, 2021, 01:44:10 PM
thank you, the script is awesome!