Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Shutdown error  (Read 3059 times)

0 Members and 1 Guest are viewing this topic.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Shutdown error
« 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

Jollywest

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:Today at 01:12:41 am
Re: Shutdown error
« Reply #1 on: January 01, 2015, 01:57:13 pm »
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  ;)

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Shutdown error
« Reply #2 on: January 01, 2015, 03:57:46 pm »
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.

Louis Tully

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1800
  • Last login:February 13, 2015, 09:41:03 pm
Re: Shutdown error
« Reply #3 on: January 01, 2015, 04:02:31 pm »
.
« Last Edit: February 12, 2015, 06:46:10 pm by Louis Tully »

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Shutdown error
« Reply #4 on: January 01, 2015, 10:34:17 pm »
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:

Code: [Select]
#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.