Does hibernate turn off the 12 volts? Im using the computer shutting down to turn off a relay, which turns off the monitor.
I came up with this ahk script, which Mala runs on exit:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
;this will shutdown windows unless the number 2 is pressed
sleep 100 ;wait 100 milli seconds
getkeystate,state,2 ;check to see if key 2 is up or down
if state=D ;2 is down
msgbox,, Exit to Windows Desktop, Player 2 Start button was pressed so the Windows Desktop will display.
else ;2 is up
Shutdown, 8 ;shutdown PC
exitapp ;this will exit the script
When Mala exits, it runs this script. This script checks to see if key 2 (player 2 start) is pressed, if not, Windows is shutdown.
If 2 is pressed, Windows desktop is displayed.
So, exit Mala by pressing ESC, Mala popup asks if you want to quit, if not hit ESC.
If you still want to quit and shutdown PC, press just player 1 start, but if you want to exit to Windows desktop instead, hold down player 2 start then press P1 Start.
This looks like it will work.