The NEW Build Your Own Arcade Controls
Front End Support => MaLa Frontend => Topic started by: DaOld Man on January 01, 2015, 06:34:30 am
-
When I select mala to shutdown the pc on exit, it sometimes gives a pop up error box and says to check the log files. But the pc goes ahead and shuts down anyway.
Don't really see anything the malaexe log file that might pertain to that error.
It doesn't do this every time, just randomly.
Anyone else seen this problem?
Version 1.74
-
When I select mala to shutdown the pc on exit, it sometimes gives a pop up error box and says to check the log files. But the pc goes ahead and shuts down anyway.
Don't really see anything the malaexe log file that might pertain to that error.
It doesn't do this every time, just randomly.
Anyone else seen this problem?
Version 1.74
Yep I was also getting this error.
Everything thing I tried in the 'MALA exit' tab under 'GUI' tab in settings brought up this error now and again.
To solve it, I have 'Quit' selected from the drop down menu in the 'MALA exit' tab and then I have MALA set to run an Auto HotKey script (below) on exit as well:
Sleep 200
WinClose, MALA
Sleep 1000
Shutdown 1
ExitApp
Not the tidiest script by any means but does stop the error ;)
-
Ok Thanks, yeah I figured I would have to do something like that.
I liked the idea of right clicking on Mala and selecting exit, so I can get into windows without shutting down the PC, should the need ever arise, but still shutting down the PC when exiting mala with the assigned exit button.
I might add a line to your ahk to check to see if Player 2 start button is being held in when the script runs, that way if need be, I can hold the P2 button while quitting mala to get into windows (without a lot of extra tricks), for maintenance, etc.
-
.
-
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.