It doesn't look like anybody has actually downloaded any of the scripts I've been writing... maybe I'm wasting my time, but in case I'm not:
I need help on this one. I have assessed our snes options and they all have something wrong with them. The "most working" appears to be snes9xRR, only it doesn't support the launching of lua scripts from the command line, so I wrote this ahk script:
---------------------------------------------------------------------------------------------------------------------------------------------------------
IniWrite, FALSE, snes9x.cfg, Display\Win, Fullscreen:Enabled ;Ensure fullscreen is off
IniWrite, SnesMenu.lua, snes9x.cfg, Settings\Script, LastScriptFile ;Write to the ini file the lua script name
Run, snes9x.exe,,, PID ;Launch snes9x
WinWait ahk_pid %PID% ;Wait until emulator loads
sleep, 50
WinMenuSelectItem, ahk_class Snes9X: WndClass, , File, Lua Scripting, New Lua Script Window... ;Open lua dialog box
WinWait ahk_class #32770 ;Wait for the dialog to load
sleep 50
ControlClick, Run, Lua Script ; Clicks the OK button ;click the Run button on the dialog box
sleep 50
WinMenuSelectItem, ahk_class Snes9X: WndClass, , Config, Video, Full Screen ;Go to Full Screen mode
WinWaitClose ahk_pid %PID% ;Wait for exit.
IniWrite, FALSE, snes9x.cfg, Display\Win, Fullscreen:Enabled ;Set the fullscreen mode back to false.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Now technically this script works, but it's unreliable. I would say it manages to press the "run" button to start the lua script about 50% of the time. So are there any ahk experts out there that can make this more robust? Thanks.