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: AHK script for switching encoder modes  (Read 1926 times)

0 Members and 1 Guest are viewing this topic.

bubba1212

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:October 11, 2023, 11:54:28 am
  • I want to build my own arcade controls!
AHK script for switching encoder modes
« on: February 20, 2022, 02:17:40 pm »
I have an Ultimarc minipac encoder which supports Keyboard,D and X-input.  To switch it, you hold down two buttons for 10 seconds. This is a pain when my kids try to play some of the new games with the X-input mode.  So I was wondering if anyone knew of a way to make an AHK script that could switch the modes.

Thanks in advance.

Fursphere

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1209
  • Last login:Today at 12:58:08 am
Re: AHK script for switching encoder modes
« Reply #1 on: February 21, 2022, 09:34:12 am »
I think its a hardware layer thing.    Meaning AHK (software) won't be able to do anything. 

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9404
  • Last login:Today at 03:14:06 am
  • Designated spam hunter
Re: AHK script for switching encoder modes
« Reply #2 on: February 21, 2022, 05:27:24 pm »
I was wondering if anyone knew of a way to make an AHK script that could switch the modes.
The "Multi-Mode" tab on the Mini-Pac page mentions that you can do it via command line.
Quote
    Modes can be switched by pressing Start1 (or user-set alternate I-PAC shift) and holding this, and Player 1 button 1 through 5, for 10 seconds.
    Modes can also be switched by loading an appropriate config file using WinIPAC including “invisibly” via a command line.


Scott

bubba1212

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:October 11, 2023, 11:54:28 am
  • I want to build my own arcade controls!
Re: AHK script for switching encoder modes
« Reply #3 on: February 22, 2022, 08:50:16 am »
Thank you @PL1!  This should be what I need, I'll look into this more.