Author Topic: Automatic exit to the list of games  (Read 2095 times)

b.grigorev

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
Automatic exit to the list of games
« on: July 14, 2017, 04:08:47 AM »
Hello!
Is it possible to set up so that after a certain long time there was an exit from the game in the general list of games.

bjose2345

  • Sr. Member
  • ****
  • Posts: 107
    • View Profile
Re: Automatic exit to the list of games
« Reply #1 on: July 14, 2017, 05:36:03 AM »
Like if you are playing a game, pause it and after a while the game just exit? i dont think so, but maybe im wrong.

b.grigorev

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
Re: Automatic exit to the list of games
« Reply #2 on: July 14, 2017, 06:11:26 AM »
Yes exactly.
By the principle of demonstration rollers that turn on after a while.

hermine.potter

  • Hero Member
  • *****
  • Posts: 730
    • View Profile
Re: Automatic exit to the list of games
« Reply #3 on: July 23, 2017, 10:56:37 PM »
@b.grigorev
within AM, I don't know.

with an external script (like autoit) on windows:
Code: [Select]
#include <Timers.au3>

;idle time in seconds
$time=10

While 1
If _Timer_GetIdleTime() >= 1 * $time * 1000 Then
   
;systems in taskmanager   
ProcessClose("zsnesw.exe")
ProcessClose("mame64.exe")
ProcessClose("notepad.exe")

EndIf
WEnd
Open taskmanager > start your emulator > check process name > add the process name in sourcecode 
script waits specified seconds and close all enclosed process
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: Automatic exit to the list of games
« Reply #4 on: June 21, 2021, 03:36:37 AM »
@b.grigorev
within AM, I don't know.

with an external script (like autoit) on windows:
Code: [Select]
#include <Timers.au3>

;idle time in seconds
$time=10

While 1
If _Timer_GetIdleTime() >= 1 * $time * 1000 Then
   
;systems in taskmanager   
ProcessClose("zsnesw.exe")
ProcessClose("mame64.exe")
ProcessClose("notepad.exe")

EndIf
WEnd
Open taskmanager > start your emulator > check process name > add the process name in sourcecode 
script waits specified seconds and close all enclosed process

There seems to be an issue with this script thats effecting my slower machine 1.7Ghz Celeron, its pulling 100%, but on my 1.7Ghz Pentium it doesn't cause any issues!  ???

This is what I use...using the above script as reference and guidance...
Code: [Select]
#include <Timers.au3>

;idle time in seconds
$time=120

While 1
If _Timer_GetIdleTime() >= 1 * $time * 1000 Then

;systems in taskmanager
ProcessClose("mame32p.exe")

EndIf
WEnd
« Last Edit: June 21, 2021, 03:39:27 AM by JayLie »

JayLie

  • Full Member
  • ***
  • Posts: 31
    • View Profile
Re: Automatic exit to the list of games
« Reply #5 on: June 21, 2021, 08:25:29 AM »
Okay, problem fixed

Ill post the code when this forum will allow me to, I keep getting "Internal Server Error"
there we go... I'll just post a picture then...If I cant post the code
« Last Edit: June 21, 2021, 08:41:30 AM by JayLie »