Delcom Products
 
Home->Web Notes

WebNoteId: 15
Title: Setting up the Delcom button keycodes via software control.


Summary: This web note describes how to set up the Delcom button events via software control, without using the Delcom Setup Utility. This is useful is you want to automatic the process or change the button codes in realtime.

Date: 11/13/2019

Information on how to send the commands via software to configure the button keycodes can be found in section 3.11 of the below link:
USBIO3MIG.pdf


For a command line solution you can use a batch file that calls the USBCMDAP.exe utl.
USBCMDAP.exe


Below is a sample batch file that setups button 1 to send the to RCTRL+RSHIFT+Q event.
ECHO OFF
REM This batch file sets up the Delcom button keycodes
REM Make sure no other programs are accessing the device
REM This batch requires the USBCMDAP.exe in the same directory (or search path).
REM https://www.delcomproducts.com/productdetails.asp?ProductNum=890601
REM 1) Default device to a type 7, Type7 will enable HID Events and turn LED1 ON
REM 2) Sets button 1 to RCTRL+RSHIFT+Q, 
REM 3) LED: Default ON, Momentary off when pressed.
:Start
ECHO -----------------------------------------------------------
ECHO ------------- Delcom Configuration Tool ---------
ECHO ------------- Configure as: ___________---------
ECHO -----------------------------------------------------------
ECHO -
ECHO Setting device to factory defaults type ID =7 .............
REM  USBCMDAP 0 0 101 186=Save/DefaultConfig 170=Fixed 85=Fixed 5=Fixed 1=Fixed 7=Fixed TYPE#[0=Save current,1-255=default to #] 
call USBCMDAP 0 0 101 186  170 85 5 1 7 7
ECHO -
ECHO Setting LEDUP and LEDDwn bits on LED1 ...........Optional LED Setup..........                       
REM  USBCMDAP 0 0 101 132  10=SETUPLEDUPDWN NOTUSED[0] LEDUP[0-255] LEPDWN[0-255] NOTUSED[0] NOTUSED[0]
call USBCMDAP 0 0 101 132  10 0 1 1 0 0
ECHO -
ECHO Setting button1 to send the RCTRL+RSHIFT+Q.................                   
REM  USBCMDAP 0 0 101 132  BUTTON#[1-8] NOTUSED[0] TYPE[220=KB,221=JS,223=MS] CODE[0-255] MODE[0-255] NOTUSED[0]
call USBCMDAP 0 0 101 132  1 0 220 21 48 0
ECHO -
ECHO Saving new settings ........Only send if you want to make the change permanent...............................
REM  USBCMDAP 0 0 101 186=Save/DefaultConfig 170=Fixed 85=Fixed 5=Fixed 1=Fixed 7=Fixed TYPE#[0=Save current,1-255=default to #] 
call USBCMDAP 0 0 101 186  170 85 5 1 7 0
ECHO -
ECHO -
ECHO -----------------------------------------------------------
ECHO ------------- Configuration complete --------Ctrl+C to QUIT 
ECHO -----------------------------------------------------------
PAUSE

homeproductsservicescontact usshopping cartlegal   © Copyright 2024 Delcom Products Inc - R720 10/3/2024