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 do I assign "Tab" as a Hot Key?  (Read 4036 times)

0 Members and 1 Guest are viewing this topic.

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
How do I assign "Tab" as a Hot Key?
« on: July 25, 2008, 11:17:39 am »
Hi.

Question #1
How do I set up the "Tab" key as a hot key in MaLa?  Whenever I try to assign it, the focus shifts to the next field in the dialog box following tyipical Windows behavior but I can't set it as a hotkey.  I could not find where the key assignments are stored in the ini file to change it by hand. 
Any ideas?

Question #2
I want to add a Gamboy emulator called Gambatte to my cabinet running MaLa.  This is an accuracy focused emulator but very light in features.  The only command line argument is supports is the ROM path and name.  It never starts in full screen so I have to press Ctrl+F to have it go to full screen after the game loads and then I have to Esc to make the menu bar dissapear. 
Is there any way to have MaLa execute this command for me after the emulator loads?
It's not tha I'm lazy but I am trying to integrate all of the emulators as seamlessly as possible.

Thank you.
« Last Edit: August 03, 2008, 10:36:39 am by TheManuel »
"The Manuel"

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: Hot Key Usage
« Reply #1 on: July 25, 2008, 07:49:44 pm »
Question #1
How do I set up the "Tab" key as a hot key in MaLa?  Whenever I try to assign it, the focus shifts to the next field in the dialog box following tyipical Windows behavior but I can't set it as a hotkey.  I could not find where the key assignments are stored in the ini file to change it by hand. 
Any ideas?

In mala.ini look for items under [CtrlSet0]


Quote
Question #2
Is there any way to have MaLa execute this command for me after the emulator loads?
It's not tha I'm lazy but I am trying to integrate all of the emulators as seamlessly as possible.

I don't think so..



SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Hot Key Usage
« Reply #2 on: July 25, 2008, 11:52:45 pm »
Question #2
I want to add a Gamboy emulator called Gambatte to my cabinet running MaLa.  This is an accuracy focused emulator but very light in features.  The only command line argument is supports is the ROM path and name.  It never starts in full screen so I have to press Ctrl+F to have it go to full screen after the game loads and then I have to Esc to make the menu bar dissapear. 
Is there any way to have MaLa execute this command for me after the emulator loads?
It's not tha I'm lazy but I am trying to integrate all of the emulators as seamlessly as possible.

If I were you, I would use Closemul for this.  Mala would launch Closemul which would in turn launch Gambatte.  Closemul has an automation sequence that could sent the Ctrl+F, etc...  You specify the automation steps along with the automation delay.  It will also allow you to use ESC to send Gambatte the Ctrl+Q that is needed to end that emulator.

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: Hot Key Usage
« Reply #3 on: July 26, 2008, 10:49:36 am »
Excellent.
I'll give it a try.

Thanks guys.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: Hot Key Usage
« Reply #4 on: July 28, 2008, 04:41:43 pm »
loadman:

Quote
In mala.ini look for items under [CtrlSet0]

I looked at that part of the ini file and there is nothing there regarding hotkeys but rather key assignments for the MaLa front-end itself.
Could it be the hot key assingments get stored in binary form somewhere else, or am I missing something?
I still can't figure out how to assing "Tab" as a hotkey. :(
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: How do I assign "Tab" as a Hot Key?
« Reply #5 on: August 03, 2008, 10:38:46 am »
I still have not figured this one out.
Do any of the MaLa elders have some ideas?
"The Manuel"

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: How do I assign "Tab" as a Hot Key?
« Reply #6 on: August 03, 2008, 04:15:13 pm »
I still have not figured this one out.
Do any of the MaLa elders have some ideas?


Just tested doing this with a hex editor, and it worked just fine.  Please back up your entire Mala folder and Mala subfolders so I don't get blamed for any corruption using the hexeditor.   ;)

Download a free hex editor.  I use this one:

http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm

Go into mala and set up the hotkeys using some other key such as X.  In my example, I used the source key as X with the destination key as Z.  After setting up the hotkey, quit completely out of Mala. 

Run the hex editor and open the file called mala.mle.   Search for whatever you called your hotkey.  Just after the hotkey, you should see the X and the Z separated by one character.  As you can see from the first screen shot below, the hexadecimal value for X is 58.  Change this to 09.  Save and quit the hex editor. 

Now load Mala back up and got to the hotkey options and you'll see TAB where the X was (see second screenshot).  I tested this with notepad as my emulator and when I press TAB, Z appeared in notepad.

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: How do I assign "Tab" as a Hot Key?
« Reply #7 on: August 03, 2008, 07:19:35 pm »
You are the man!!
It worked for me too.
You are the patron saint of impossible causes.

Thank you.
"The Manuel"

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: How do I assign "Tab" as a Hot Key?
« Reply #8 on: August 03, 2008, 07:25:12 pm »
Good deal!  :cheers:

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: How do I assign "Tab" as a Hot Key?
« Reply #9 on: August 03, 2008, 08:07:08 pm »

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: How do I assign "Tab" as a Hot Key?
« Reply #10 on: August 03, 2008, 08:41:55 pm »
I would not have thought of that one.
I really appreciate you're taking the time to figure this out.
"The Manuel"

swindus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 391
  • Last login:July 28, 2021, 05:52:50 am
    • MaLa - M.A.M.E. Launcher
Re: How do I assign "Tab" as a Hot Key?
« Reply #11 on: August 06, 2008, 03:46:08 am »
The problem here is that TAB is used to navigate from control to control in the dialog window. Maybe Loadman can disable this or can provide another way to add the TAB key and other special keys to the edit fields.

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: How do I assign "Tab" as a Hot Key?
« Reply #12 on: August 06, 2008, 08:46:35 am »
The simples solution would be to disable field to field navigation only when key assignation box is clicked if there is an interest to solve this.
If nobody has complained about, though, I can keep using a hex editor to make it work for me.

Thanks.
"The Manuel"