| Main > Main Forum |
| Tron, in game 8way to 4way - WORKING! 100% |
| << < (10/12) > >> |
| DaOld Man:
Good work guys! Some pretty neat stuff here! |
| tony.silveira:
hey le chuck, since you are up and running with this 100%, would you mind sharing your final ahk scripts that you and nitz figured out? i know there were a few edits and what not. can't wait to try this myself! T |
| SLCFoxy:
Le Chuck and all other contributors, I just registered so I could ask you this ;) Have you got these scripts shared somewhere. This must make it to every arcade machine out there. It's amazing! |
| EightBySix:
The same concept would allow us to detect when a game is in attract mode... I've been wondering if there would be a way to do that. We'll be able to have different led patterns, messages etc. |
| Le Chuck:
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. --- Code: ---Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & "C:\arcade\tronswitch\4way.bat" & Chr(34), 0 Set WshShell = Nothing --- End code --- and modified the AHK script to call the .vbs files rather than the bats. Here's the script: --- Code: ---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 --- End code --- 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. |
| Navigation |
| Message Index |
| Next page |
| Previous page |