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: MESS and AHK?  (Read 2182 times)

0 Members and 1 Guest are viewing this topic.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
MESS and AHK?
« on: December 14, 2014, 11:51:34 pm »
i've been spinning wheels for hours trying to figure out whey a small AHK script is working but not sending key presses to MESS.  I read on here elsewhere that MESS (and MAME) do NOT accept virtual key presses.  is this still true?

thanks all

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Today at 06:22:28 am
  • ...
Re: MESS and AHK?
« Reply #1 on: December 15, 2014, 09:51:52 am »
Yup, since MAME/MESS gets the input closer to the source before it's processed through windows, software generated keystrokes aren't seen.

If you're capable of compiling your own, there are tutorials out there of changing it in the MAME source code.  It's a one line change.
I haven't seen it done in MESS, but I would think the line of code would be the same and could be found by doing a search.

RacerMAME is a build of MAME made for racing cabs.  For the sake of other programs/scripts helping with shifter issues, it has the change already made.
I know the xml it generates will only list the driving games.  Not sure what other issues you might run into using it, but it's already compiled and ready to go.

While MAME doesn't see virtual key presses, it does see virtual gampad presses.
This is the route I'd take.  Either using Headkaze's vjoy program (make sure you get the one made by headkaze and not the knock-off), or directly in autohotkey.
I'd need a refresher on posting gamepad presses in ahk.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1534
  • Last login:June 09, 2025, 07:53:02 am
  • retro maniac
Re: MESS and AHK?
« Reply #2 on: December 15, 2014, 02:06:03 pm »
That's probably caused by raw inputs instead of direct inputs (keyboards and mouses are read through raw but pads still through direct input). There is simple hack for mame for restoring direct input also for mouse and keyboard.

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:June 09, 2025, 02:15:20 am
    • My personal forum
Re: MESS and AHK?
« Reply #3 on: December 19, 2014, 02:50:23 am »
Where was this hack? I do not remember now ...

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 05, 2025, 05:38:45 pm
Re: MESS and AHK?
« Reply #4 on: December 19, 2014, 03:03:37 am »