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: Keyboard mapping issues with PC games. AutoHotKey the solution?  (Read 5567 times)

0 Members and 1 Guest are viewing this topic.

Shun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:August 28, 2024, 07:08:49 pm
I was wondering if someone could help me. I've got Sega Rally Revo and Outrun Coast 2 Coast running on my cab. However I can't seem to configure the keyboard for either game. Sega Rally Revo has greyed out the keyboard section of the config program so I can't change anything. I can change the keys on Outrun but it doesn't allow me to get to the games menu (escape by default i think), and also when i quit the game and go back in the keys have gone back to default  :angry:.

The default keys work for for both games and i was wondering if AutoHotKey could be used to substitute my button keys for the default in each game. I'm not sure how i would go about writing the script for this though  :-\

Also i am running maximus arcade and when i quit Sega Rally Revo by holding down END (this is my quit button for all emulators) the screen goes blank and i can here that maximus is running but i think Sega Rally is still running. I have to CTRL ALT Delete to shut the process down manually to quit it. I had the same problem with Street Fighter IV but since I used the script to bypass the launcher screen (see below) it seems to quit fine (i changed the ESC to and END and it worked!) So perhaps i could use some of the script below to help me quit Sega Rally, but i'm not sure how. I've tried a few times but it doesn't seem to work. Can anyone experienced with AHK help me out?  :angel:


#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, SF4Launcher.exe, , Max
WinWait, STREET FIGHTER IV LAUNCHER
IfWinNotActive, STREET FIGHTER IV LAUNCHER
WinWaitActive, STREET FIGHTER IV LAUNCHER
Send, {enter}
Blockinput off
Process, WaitClose, StreetFighterIV.exe
return
ESC::
Process, Close, StreetFighterIV.exe
ExitAPP
return

Complete: Pac-Man Cabaret scratch build:
Project thread


Work in progress:

Two Phase Bartop With Flush Mounted Dreamcast. 75% Complete

mh12

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 24, 2010, 10:03:57 am
Re: Keyboard mapping issues with PC games. AutoHotKey the solution?
« Reply #1 on: April 21, 2010, 06:32:01 pm »
i use AHK for lots of games with hard-mapped keys.

Quote
z::w
return
x::n
return

that would make z send a w and x send an n.

i run Outrun C2C as well. my cab doesn't have any analog control, so i play it with a gamepad (cab has my biggest screen). have you tried to play it with the keyboard or anything digital? not very smooth!