8x6 - I think it would be easier to key the setting off how long since there was an input from the CP. Kinda like a sleep mode, after 3 minutes have the LED go into attract mode. That's a perfect AHK application. I don't know if this has already been done but it seems to ring a bell. I think it would be easier than recognizing the switch into attract-mode by screen change unless it is always the same first screen.
SLCFoxy & Tony - I need to go in and get the settings off Darkade and get them uploaded here for the final solution to do both 4:3 and 3:4 orientations. I should be able to get that done in the next few days. For now the solution for a single orientation (doesn't matter which) is below and should satisfy the needs of most out there.
Following script allows you to call the servo batch file without stealing focus (necessary for in-game use). Saves as .vbs.
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\arcade\tronswitch\4way.bat" & Chr(34), 0
Set WshShell = Nothing
and modified the AHK script to call the .vbs files rather than the bats.
Here's the script:
Loop
{
run c:\arcade\tronswitch\8way.vbs
Loop
{
ImageSearch,,, 223, 94, 252, 130, c:\arcade\tronswitch\startlightbike.bmp
If (ErrorLevel = 0)
{
break
}
}
run c:\arcade\tronswitch\4way.vbs
Loop
{
ImageSearch,,, 304, 107, 360, 165, c:\arcade\tronswitch\endlightbike.bmp
If (ErrorLevel = 0)
{
break
}
ImageSearch,,, 334, 142, 510, 175, c:\arcade\tronswitch\gameover.bmp
If (ErrorLevel = 0)
{
break
}
}
}
$esc::
send {esc}
exitapp
Just get the screens mentioned earlier in this thread and trim them down to small unique chunks. Before you trim them note their parameters (doable in paint fairly easily) so you can tell the script where to look. I will try and put together a more coherent set of instructions in a bit as this is getting some renewed interest.
If anybody else has tackled this feel free to chime in.