How about an all-hardware solution where it "sniffs" the video signal and detects that you're trying to output something over/under a certain number of lines and triggeres the relay appropriately.
Designing a video sniffing circuit for this application is
massive overkill IMHO.
Even the Arduino + relay board option is at the outer edge of suitability, depending on whether or not the relay switching time 0v spikes could damage your monitor. The relays I've seen are all "break before make".
If that isn't an issue, I was thinking more of using the front end to launch a .bat file containing two commands when a vertical game is launched -- the first to energize the desired vertical relay and the second to energize the horizontal relay.
- The horizontal relay should be wired with COM going to the VSize circuit, NC connected to the Horizontal 1 pot wiper, and NO connected to COM on the three vertical pots.
- The vertical relays would have the related pot's wiper connected to NO.
- When booting up, the horizontal relay won't be energized, so the wiper from the Horizontal 1 pot on NC goes through COM to the VSize circuit.
When you exit the game, have the FE send a command to de-energize all relays and you're back to Horizontal 1 pot for VSize.
-----------------
4-pot setup:
- Horizontal 1
- Vertical 1 (adjust for shortest game -- max vertical stretch)
- Vertical 2 (adjust for a "happy medium")
- Vertical 3 (adjust for tallest game -- min vertical stretch)
-----------------
It would be a
whole lot easier to use a 4-position "make before break" rotary switch.
- Launch vertical game.
- Swich from Horizontal 1 to Vertical 1.
- If the picture is too clipped, switch to Vertical 2.
- If the picture is still too clipped, switch to Vertical 3.
Scott