Hello, thank you for your work with this project. I bought a cabinet that had a lot of stuff installed including Attract Mode, but the joysticks were only set to keyboard and none of the Steam games I was trying to play worked quite right.
My main issue now is that I can't quite get the AHK script for Steam to work. I've taken the sample and filled in my directories:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
Run, "R:\Arcade\Keyboard2Xinput\Keyboard2XinputGui.exe"
Run, "C:\Program Files (x86)\Steam\steam.exe" -applaunch %1%
isRunning := "0"
While (isRunning = "0") ; Wait until the game is launched
    RegRead, isRunning, HKCU\Software\Valve\Steam\Apps\%1%, Running
	Sleep, 5000
Sleep, 5000
MouseMove, 1920, 1200
WinGetTitle, Title
While (isRunning = "1") ; Wait until the game is closed
    RegRead, isRunning, HKCU\Software\Valve\Steam\Apps\%1%, Running
	Sleep, 500
; Game stopped, stop keyboard2Xinput by sending numpad multiply key (see k2x mapping.ini)
SendInput {NumpadMult}
; change focus back to Attract-Mode
WinActivate Attract-Mode
Then, in AM, I have this as my emulator configuration:
# Generated by Attract-Mode v2.6.1
#
executable           R:\Arcade\Emulators\steamXinput.exe
args                 -applaunch [name]
workdir              
rompath              C:\Program Files (x86)\Steam\steamapps
romext               .acf
system               PC
info_source          steam
nb_mode_wait         10
artwork    flyer           R:\Arcade\attract\scraper\Steam\boxart
artwork    snap            R:\Arcade\attract\scraper\Steam\video;R:\Arcade\attract\scraper\Steam\snap
The behavior I'm seeing is that the parameter of the game doesn't seem to be passing to the AHF script I compiled or to the AHF script itself. The script will run and open K2X and Steam, but it doesn't try to open a game and just fails back to AM. Are there any variables that I'm missing?