Jump to content
LaunchBox Community Forums

Recommended Posts

Posted (edited)

Hi everyone,

I've created two autohotkey scripts to run on my launchbox teknoparrot setup, allowing me to fix the steering wheel GUID and light gun device path settings on Teknoparrot.

The problem they try to fix is that, in Teknoparrot, you setup controller settings per game and these settings specifically reference the hardware you used for the controller (e.g. which steering wheel or light gun). This makes the setup quite complicated and cumbersome and, to make matters worse, every time Windows decides to assign a new GUID or DevicePath to your device (e.g. because you hooked it up to a different port OR hooked it up after Windows booted and generated IDs for the other devices), the system might stop working!

This was causing me to, every now and then, launch a game only to conclude the controllers had to be reset because my devices (e.g. steering wheel or light gun) were no longer detected as the controls configured in Teknoparrot..

To address this, I created two scripts (attached to this thread in a zip file):

  • UpdateWheelProfiles.ahk
    • This script can be called from your running script to detect the GUID for your steering wheel and then update all user profile xml files with the correct device!
  • UpdateLightgunProfiles.ahk
    • This other script can also be called from your running script to detect the DevicePath and update all user profile xml files to use the right ones!
      • I couldn't figure out a way to DETECT the actual new path for my devices so this isn't "as automatic"
        • Basically, the idea is that you add this to the launch of each game and, if the light guns stop working, you setup JUST "AfterDark" to have the script read the configurations from THAT game and copy it to others!
          • AfterDark was the first light gun game in my list, which is why I picked it - it is then compared to the last game in my list (WartranTroopers) and, if it detects a change, it uses the DevicePath on "AfterDark" to set it on all other user profiles!

Anyway, this is the best I came up with for now but it really helped me out so I wanted to share it with the community in case others need a solution for the same problem as me.

A great fix would be to detect the DevicePath automatically (by looking up the name of the device in windows) but I haven't been able to get that working for now and I'm satisfied with how things are so I likely won't automate this any further...

Enjoy!

p.s. Sorry if I posted this in the wrong place, I wanted to share it with the community so others could find it and this seemed like a good place to post this at.

 

UpdateProfiles-Dec17th2025.zip

Edited by Trashpanda
fixed grammar.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...