Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: nitrogen_widget on February 14, 2015, 12:31:59 PM
-
can attractmode call a script file or binary file to activate hardware to turn a monitor when I launch a game that is vertical then run another file upon exit of the game to return the monitor to horizontal?
I'd come up with the hardware & software myself to do the actual turning of the monitor, i'd just need a front end to control it for me.
-
yes, take a look at the ultrastik360 plugin which runs commands whenever a game is launched and whenever it ends. You could tweak it a bit to do what you are looking for.
To figure out the rotation of a game from a script, use fe.game_info( Info.Rotation )
. It will equal "90" or "270" for vertical games, "0" for horizontal.
cheers
-
Thanks for pointing me in the right direction.