Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: pacman_fan on October 13, 2023, 12:37:48 PM

Title: Issue starting a game, The game starts in the background
Post by: pacman_fan on October 13, 2023, 12:37:48 PM
I've narrowed the problem down to a key being pressed while mame is loading.
I believe its a windows thing, same happens opening up any application in wndows. if ctrl, alt or shift are pressed or held when starting word, IE, or MAME, that app launches in the back.

As hard as I try to start it, sometimes a player will just pressed buttons after selecting their game, then the game isn't visable, or the coin/start commands goto the background, app not functioning, until I Alt-Tab with a keyboard!  not fun.
Title: Re: Issue starting a game, The game starts in the background
Post by: pacman_fan on October 13, 2023, 06:05:18 PM
Experimenting with this some more, its when the user presses a key multiple time after selecting the game!
usually it's the CTRL (fire) or Coinin (5) keys
Title: Re: Issue starting a game, The game starts in the background
Post by: progets on October 13, 2023, 09:51:09 PM
Try Configure-->Emulator--(your_emulator_name)-->Non-Blocking Mode Wait = 10.

If this works you can play with the 10 number and reduce it as low as possible before the problem returns. BTW - 10 equals the number of seconds AttractMode will wait before putting focus on the emulator when launching a game so be patient when testing.
Title: Re: Issue starting a game, The game starts in the background
Post by: pacman_fan on October 15, 2023, 06:50:50 PM
Thank you for the suggestion, but that had no effect.

I managed to find an article with a solution using autohotkey, it works well!

https://www.autohotkey.com/boards/viewtopic.php?style=19&t=93082