Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - victor

Pages: [1]
1
General / Attract Mode not giving focus away to Windows .exe
« on: May 12, 2016, 07:03:24 PM »
Hi there,

I'm having some trouble getting a reliable handoff from AM to Windows executables. If the user presses keys during the launch, AM can hold on to focus instead of handing off to the game.

(Full disclosure: I first went to the bug link from the forum index, found myself on GitHub, and posted a ticket here https://github.com/mickelson/attract/issues/220)

My current configuration launches games by way of "cmd /c [romfilename]". The games always launch, but in some cases they don't get focus. It's very reproducible for me: Rapidly press a key that's not mapped in AM; launch the currently selected game while still pressing that other key; the game launches, but does not get full focus.

In most cases, this results in a black screen because AM has faded to black in preparation for launching the game, but the game didn't get window focus. In fewer cases, the game DOES get window focus, but AM still has keyboard focus.

I've tried a couple of things so far, with no change in this behavior:

  - setting "Minimum Run Time" to a few different values (0, 1, 5, 60)
  - launching a batch file that then launches the .exe
  - launching Notepad.exe (tried because it launches pretty quickly)

I'm running Windows 8 and Attract mode 2.0.0.

I'm at a loss! Please help!

Thanks,
Victor

Pages: [1]