Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: wild_eyed on August 14, 2011, 05:45:37 pm

Title: Minor AutoHotkey Issue with MAME
Post by: wild_eyed on August 14, 2011, 05:45:37 pm
hi all, i hope someone here can help me.
im using an Xarcade control Panel

the button on the far right is assigned to the Kepboard number 4

im using it as my "shift" key

Using Auto Hot Key i want

4 & 1::Send {p}
4 & 2::Send {Esc}
4 & q::Send {Return}

i have compiled my ahk script and it works fine when tested in notepad.

but when mame is running my new commands dont do anything...
any ideas?

do i need to tell the script to watch the mame window or something?

any help would be greatly appreciated.

paul
Title: Re: Minor AutoHotkey Issue with MAME
Post by: Howard_Casto on August 14, 2011, 09:38:22 pm
Mame uses raw keyboard data so ahk scripts that do simulated keypreses won't work on it, sorry. 

But it looks like what you are trying to do is have two keys combined do a special function.  (Pause, exit and enter?) 

Simply remap your keys in mame.  It supports "and" so you can have ui exit mapped to "1 and 4" instead of just "esc"

Check the mame faq if you have trouble mapping two keys together as an "and".