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: Getting MaLa in Windows Focus. (Testers Please)  (Read 4261 times)

0 Members and 1 Guest are viewing this topic.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Getting MaLa in Windows Focus. (Testers Please)
« on: March 20, 2010, 07:36:08 am »
There have been many reports about MaLa losing focus at Startup or after quitting a game.

eg:
http://forum.arcadecontrols.com/index.php?topic=100253.0
http://forum.arcadecontrols.com/index.php?topic=98106.0
http://forum.arcadecontrols.com/index.php?topic=97496.0
http://forum.arcadecontrols.com/index.php?topic=76882.0

There is a Plug-in that can help:
http://www.malafe.net/index.php?page=plugins#malafocuslogger

Even though this does not happen to me I wanted to helkp so I finally found so code that forces focus and controller back to MaLa.  ;D

I tested this by deliberately choosing another application and MaLa would regain focus (at a set time)  :applaud:

Anyway as the real issue does not happen to me I am guessing where to put this new code. I assume after it loads a gamelist and after you quit a game.

I am going to need some beta testers who experience focus issues   :P
« Last Edit: March 20, 2010, 07:50:57 am by loadman »

qlunch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:June 15, 2023, 08:55:09 am
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #1 on: March 20, 2010, 01:22:39 pm »
loadman, first off thanks for keeping mala going. I've found it to be my favorite FE and the most flexible one going!

That said I have experienced focus issues. NOTE: I do have the focuslogger plugin installed.

In my experience mala loses focus upon quitting a game (happens with mame and other emulators as well). It tends to happen more often when I've been playing for a few minutes or more. ie entering and quitting games immediately tends not to reproduce the issue.

I could be wrong but at one point I thought reordering the layout affected the chance of it occurring (don't recall whether it was for the good or worse) <--- ignore if this doesn't make sense based on the code  ;D

oh and system specs
running 1.05 (also had same issues with 1.62b when used briefly)
amd 3800+
windows xp sp3
nvidia 8600gt

Let me know how I can help!
thanks

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #2 on: March 20, 2010, 06:06:04 pm »
Let me know how I can help!
thanks

You can help by setting up another MaLa in a separate folder ready to test. I don't want to risk breaking your setup.

Don't spend too much time setting up MaLa layout and game lists (just all the files from the original mala folder).

The point is you need to be able to recreate the common scenarios where you will have foxus issue.

I will then post a few mala.exe for you to substitute and see if we can make it better not worse.

That is my plan at the moment

dapsaille

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:July 13, 2019, 01:31:26 am
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #3 on: March 22, 2010, 05:30:05 pm »
Hi Loadman.

 By focus problems do you mean that mala.exe is executed but stay in the taskbar after exiting game ?

 If yes, i encounter the problem on a pc game who is not launched directly .. i mean that this is a launcher who launch another exe ...

 So it seems that mala don't like this way .. i've tried your plugin but it doesn"t help anymore.

 All my others "regular" games works perfectly and mala recover focus after exiting them.

 If i try to click on mala in the taskbar nothing happen .. and right click => restore don"t work .. need to kill mala (arghhhh) and respawn it (yeahhh)
« Last Edit: March 22, 2010, 05:36:29 pm by dapsaille »

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2252
  • Last login:July 17, 2025, 07:40:40 pm
  • Dr. Inferno
    • The Infernolab
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #4 on: March 24, 2010, 07:26:25 pm »
Loadman-

I'll give it a whirl.

I have trouble with losing focus when launching MaLa upon Windows XP Pro startup.  I'm using AutoHotKey now to remedy it, since FocusLogger didn't work for me.

I've never lost focus when quitting a game & returning to MaLa.


Let me know what you want me to do.

Thanks,
-Jason
« Last Edit: March 24, 2010, 08:33:54 pm by jasonbar »

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #5 on: March 24, 2010, 08:22:51 pm »
That happens to me, but it's pretty infrequent, so I'm not sure I'd be any good for testing this.

I'll keep an eye out though to see if there's any consistency to it.

Actually, now that I think about it, it's usually the opposite for me, ie mala has popped to the foreground even though mame is running in the background. When that happens mala can't get focus so the machine appears to be hung.

Using taskman to kill mame, lets mala gain focus again normally.

So, ummm. nevermind  ;)

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #6 on: April 05, 2010, 05:14:59 am »
OK,

Having the 'Force Focus to MaLa' code triggered every time the Video looped was  :blowup:  :banghead:   driving me nuts!

I have a dual monitor setup for development and I would be half way through typing code and 'BOOM' I would have to grab the mouse and click the Delphi window again.

So I have moved it to a semi-random spot in the code after a game is quite.

Testing later by you good folk will reveal if the placement is effective :-)

zipwax

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:September 01, 2010, 06:38:57 pm
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #7 on: April 17, 2010, 05:52:56 pm »
I'm getting focus problems too. I'm running Windows 7 Ultimate, and I think the focus problem happens both when switching to Mame and when exiting a game to go back to the Mala. Problem is, I'm never around to see the bug happen. The game is set up in the kitchen at my work, and whenever I come by, it's locked up. Since Win7 has a lot of hooks in it for various programs and background services to run, it's not a surprise (with how badly software is written today) (I work at Microsoft) that something else tries to grab the focus. Things are complicated now. There needs to be a background process running all the time that says "If mame is running, IT gets the focus" "If mame is not running and Mala is running, Mala needs the focus" "Everybody else, you can all go **** yourselves, you're not getting the focus, ever". :-)

I'd like to beta-test some new mala versions too.

In my mala installation, by the way, it is ABSOLUTELY barebones. Nothing but the bare installation. No videos, no attract sounds, no layouts, nothing extra.

PS: Everybody here at work does NOT like Mala's feature to show the extra game info, or the ability from the UI to allow filtering of the games or removing games from the list. All I, the adminstrator, of the box, want is the ability to select from one of a variety of games, then run said game. Is there source code for Mala so I can compile it and remove the extra stuff?

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #8 on: April 19, 2010, 04:13:21 am »
Is there source code for Mala so I can compile it and remove the extra stuff?

Ha ha  :laugh2: ...well apart from anything else you need a copy of Delphi 5 and a way to buy all these old 3rd part libs.

Can you specify what parts of the menu should not be accessed and I will consider making that an option

qlunch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:June 15, 2023, 08:55:09 am
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #9 on: May 06, 2010, 10:08:09 pm »
loadman, I recently moved my computer into my cab now that its getting close to being finished and have been using it this way for over a week without any focus issues. I had been experiencing them often enough to expect several to have happened by now. The only difference between my setup before and how it is now is the monitor. I was using a widescreen 1440x900 (i think) lcd and now I am using a 4:3 crt monitor at 1600x1200. I have been using the zebra layout pack (4:3) and made no software changes in mala. Could resolution / aspect ratio changes possibly affect this focus issue...or did I just luck out?

qlunch

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Getting MaLa in Windows Focus. (Testers Please)
« Reply #10 on: May 06, 2010, 11:56:55 pm »
You may have just lucked out ?

I never happens to me either.

But I added code to force focus after quitting a game in the next beta. I will interested in the feedback