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: EveryExtend + AutoHotKey == Cab-Friendly  (Read 2418 times)

0 Members and 1 Guest are viewing this topic.

SpamMe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 538
  • Last login:July 01, 2006, 03:19:58 am
  • .creature of bad habit.
    • Mame cabinet blog
EveryExtend + AutoHotKey == Cab-Friendly
« on: June 21, 2005, 04:56:56 pm »
EveryExtend (free): - http://nagoya.cool.ne.jp/o_mega/product/e2.html
AutoHotKey (free): - http://www.autohotkey.com/

EveryExtend works alright in a cabinet (escape to quit, playable (menus and all) with a joystick and one button), but has a couple of problems:
  • There's a dialog box that pops up every time it's opened asking whether you want to play fullscreen or not and
  • the controls aren't remappable.

Solution:
Download and install EveryExtend, download and install AutoHotKey (doesn't need to be installed in the cabinet, see below), and create a new script like the following:
Code: [Select]
;start everyextend
Run, C:\Path.To.EveryExtend.Folder\SGX2.exe, C:\C:\Path.To.EveryExtend.Folder,

;Looks for exact window titles instead of partial
SetTitleMatchMode, 3

;wait until EveryExtend's 'fullscreen or not' dialog pops
WinWait, Project-SGX2, Fullscreen mode?
;and dismiss it
ControlSend,, y, Project-SGX2, Fullscreen mode?

;wait for the full screen game to begin
WinWait, Project-SGX2,,,Fullscreen mode?

;check to see whether EveryExtend is still running every second or so
SetTimer, close, 1000

;the following basically remap every one of my player one controls to 'z'

*q::
*w::
*e::
*r::
*t::
*y::
*Enter::
Send {z down}
Return

*q up::
*w up::
*e up::
*r up::
*t up::
*y up::
*Enter up::
Send {z up}
Return

;If there's no everyextend instance, exit the AutoHotKey script.
Close:
IfWinNotExist, Project-SGX2
exitapp
Return

Next convert your script to an exe (which will let the script run on a machine that doesn't have autohotkey installed) with AutoHotKey's included "Convert .ahk to .exe" utility, and point your frontend to that instead of the actual PC app.

[Edit] - Better code
« Last Edit: July 03, 2005, 04:05:06 am by SpamMe »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 09:00:39 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: EveryExtend + AutoHotKey == Cab-Friendly
« Reply #1 on: June 21, 2005, 06:30:55 pm »
Yup this trick also works for the pc version of guilty gear XX  those trackball games and virtually any pc game you can think of.

Autohotkey will be merged with my uber wrapper to create the ultimate solution (eventually). 

EndTwist

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 480
  • Last login:May 26, 2022, 05:04:49 pm
  • Arg.
Re: EveryExtend + AutoHotKey == Cab-Friendly
« Reply #2 on: June 21, 2005, 07:54:35 pm »
I can't seem to get your "alternative" method to work at all...

Edit: I got this working -
Code: [Select]
q::zDownUp()

zDownUp()
{
     Send {z down}
     Sleep 70
     Send {z up}
}
« Last Edit: June 21, 2005, 08:06:38 pm by EndTwist »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 09:00:39 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: EveryExtend + AutoHotKey == Cab-Friendly
« Reply #3 on: June 22, 2005, 01:13:29 am »
there are better ways to code it, but i'm tired... maybe later


also the ahk works much better in xp than anything else

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: EveryExtend + AutoHotKey == Cab-Friendly
« Reply #4 on: June 22, 2005, 09:11:01 am »
Does someone have a direct link to the everyextend file?  I can;t follow foreign text.

EndTwist

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 480
  • Last login:May 26, 2022, 05:04:49 pm
  • Arg.
Re: EveryExtend + AutoHotKey == Cab-Friendly
« Reply #5 on: June 22, 2005, 09:14:13 am »