The NEW Build Your Own Arcade Controls

Main => Main Forum => Topic started by: MidLifeCrisis on December 12, 2021, 01:13:44 am

Title: Help with U-Hid configuration script
Post by: MidLifeCrisis on December 12, 2021, 01:13:44 am
Hello,

I am new to the hobby and can't seem to figure this out. I am using an Ultimarc U-Hid and am attempting to create a batch file to load different configurations to the encoder based on the emulator I am running.

In the U-Hid manualt it says:
The U-Config utility can be run from a command-line (ie Batch file) by using the command “U-Config <name of HID file>”. The board will be programmed with the contents of the HID file.

This is the batch file I am trying to create:
@ECHO OFF
START "" "C:\Program Files (x86)\Uconfig\u-config Keyboard_1.hid"
PAUSE

When I run this, I keep getting a "File not Found" error. I've tried different places to put the quotation marks, I've tried putting the <> like it shows in the directions, I've tried placing a - before the file as well as a /, but can't seem to get it to work.  I've also tried it through AHK with no success.

Any help with the correct way to send the command would be greatly appreciated. Thank you.



Title: Re: Help with U-Hid configuration script
Post by: Havok on December 22, 2021, 01:46:00 am
You're not specifying the actual executable in your batch file. Normally when you use the Start command, it references some application. I'm not familiar with this product, but I would hazard a guess that your second line should be something like this:

"C:\Program Files (x86)\Uconfig\U-Config.exe" "C:\Program Files (x86)\Uconfig\u-config Keyboard_1.hid"

I'm assuming the uconfig filename and location, so obviously change them to where it is on your system, but hopefully that helps.