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: How to get MaLa to focus (remain the top window) after exit to gamelist!  (Read 2218 times)

0 Members and 1 Guest are viewing this topic.

javeryh

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7959
  • Last login:July 18, 2025, 05:37:37 pm
EDIT: Something is very wrong with my computer and I can't think of anything other than my recent install of AutoHotKey. 

 :banghead: :banghead: :banghead: :banghead: :banghead: :banghead:

_____________________________

OK, I noticed through my searching that some people are having trouble getting MaLa to focus (it does not remain the top window after initially exiting back to the gamelist).  From what I've read I think it is an issue with also running MisfitMAME which I have installed on my cab as well (one mixed gamelist).  Anyway here is a super easy way to fix the problem:

1.  Install AutoHotKey.  
2.  Create the script (.ahk file) below
3.  Place the .ahk file in your startup folder.

Easy as pie!

Here's the text for the .ahk file:

Quote
#SingleInstance Ignore

Menu, Tray, NoStandard
Menu, Tray, Add, Exit, LvNow
Menu, Tray, Default, Exit

Esc::
{
  SendEvent,{Esc}{LButton}
  Goto, LvNow
}
Return

LvNow:
  ExitApp
Return

The net effect of this is after the ESC button is pressed for the first time only (exiting out to the gamelist), a left mouse click is simulated which makes MaLa the top window again.  I know there is a focus logger extension floating around out there but I couldn't get it to work 100% of the time and the AutoHotKey solution appears to be working without issue.  If something goes wrong over the next few weeks I'll report back but I think I've got it figured out now!   :cheers:

EDIT: Something is very wrong with my computer and I can't think of anything other than my recent install of AutoHotKey. 

 :banghead: :banghead: :banghead: :banghead: :banghead: :banghead:
« Last Edit: February 24, 2010, 09:57:57 pm by javeryh »