Centarea HID Support Pack Version 2024-01-30
See the end of this post for a description of the changes in version 2024-01-30.
This post contains a support pack for use with the Ortek VRC-1100 and Hama 00052451 remote controls. The support pack allows these remote controls to work with MP1, and cures some of the quirks that these remote controls have. This support pack does not work with MP2. The major components are:
Centarea HID.xml
This is the configuration file that specifies the action performed by each button on the remote control. This file can be modified by clicking "Mapping" on the "Sceneo" tab in the "Remotes and Input Devices" section of the "MediaPortal Configuration" tool. Two versions of the configuration file are provided:
The advanced and basic versions of the configuration file are not compatible with each other, so you should decide which version you want to use before customising the button assignments to suit your own preferences.
Centarea HID.ahk
This is the AutoHotKey script that performs the processing needed to improve the usability of the Ortek and Hama remote controls. For example, this script allows MediaPortal to be started from the Windows desktop by pressing the START button on the remote control. This script requires no modification by the user.
Centarea HID.ini
This is a standard Windows-format INI file that contains several settings which control the processing performed by the AutoHotKey script. This can be modified by the user.
Centarea HID.txt
This is a plain-text file that explains how to use the support pack.
install.bat
This is a batch script that installs the support pack files in the correct folders. Existing files in those folders are not overwritten -- they are moved to a backup folder that is located in the "InputDeviceMappings" folder. There is a corresponding uninstall.bat if you wish to discontinue use of the support pack.
Brief installation instructions
(1) Create a dedicated folder to contain the support pack. This folder can reside anywhere in your system, but avoid placing the dedicated folder in the "Team MediaPortal" folder tree. The folder can have any name that you choose, but the name Centarea HID (2024-01-30) is suggested.
(2) Download the zip file attached to this post, and place it in the dedicated folder. Unzip the zip file.
(3) Read the file "Centarea HID.txt" and decide whether you want to use the advanced configuration or the basic configuration.
(4) To start using the support pack, run "install.bat". The bat file will ask you whether you want to use the advanced configuration or the basic configuation. The installation will preserve existing files in a backup folder, and then copy the relevant files to their appropriate locations.
(5) If you want to use the advanced configuration, download and install the AutoHotKey tool. Reboot your system to start the Centarea HID AutoHotKey script.
Changes in version 2024-01-30
(1) The support pack works with all combinations of MP1 bitness and Windows bitness. In particular, it works with:
(2) Only the AHK, BAT, and TXT files have changed; the INI and XML files have not changed. This means that you can continue to use your customised version of the XML file. Note: all files have their file date/time set to the values for the current release, even those where the content has not changed.
(3) Progress text is now displayed on the console during the installation.
(4) The "/b" option has been added to all of the "exit" statements in the install BAT file to stop the command window closing on exit from the BAT file. This allows you to review the progress text if desired.
(5) During the install you will be asked whether you wish to retain your existing INI and XML files.
(6) It is not valid to have both 32-bit MP1 and 64-bit MP1 installed on the same system. If both are found by the AHK script, the script invokes the 64-bit version of MP1.
(7) If the script detects a version of "MediaPortal.exe" running without any windows, it means that MP1 did not terminate completely when previously closed. This prevents MP1 restarting. To workaround this problem, the script terminates that instance of MP1 before starting a new instance. This was done by the previous release of this support pack. In the new release, the script additionally writes an entry to the file "Centarea HID.log" located in the MP1 logs folder. This will allow you to see how often this problem occurs on your system (but remember to avoid deleting this file if you "clear out" the log folder prior to running a test where you want to upload the logs for examination by one of the developers).
(8) The AHK script is written using AutoHotKey version 1 syntax, which cannot be processed by AutoHotKey version 2 (which uses different syntax). If you have version 2 installed, you should manually invoke "Centarea HID.ahk" while your system is connected to the internet. AutoHotKey version 2 will detect that the script is version 1, and offer to download and install the most-recent release of version 1. This will allow the Centarea HID script to run. Note that both versions of AutoHotKey can exist on the same system.
There is an AutoHotKey version-2 script for converting version-1 scripts to version 2 ("v2converter.ahk"), but sadly this script does not create a valid version-2 script; manual editing is required to correct the errors in the converted script.
-- from CyberSimian in the UK
See the end of this post for a description of the changes in version 2024-01-30.
This post contains a support pack for use with the Ortek VRC-1100 and Hama 00052451 remote controls. The support pack allows these remote controls to work with MP1, and cures some of the quirks that these remote controls have. This support pack does not work with MP2. The major components are:
Centarea HID.xml
This is the configuration file that specifies the action performed by each button on the remote control. This file can be modified by clicking "Mapping" on the "Sceneo" tab in the "Remotes and Input Devices" section of the "MediaPortal Configuration" tool. Two versions of the configuration file are provided:
Centarea HID.xml_a -- this is the advanced configuration file. It provides improved usability, but requires the user to install the AutoHotKey tool.
Centarea HID.xml_b -- this is the basic configuration file. This allows the Ortek and Hama remote controls to work with MP1, but does not provide any usability improvements. This version does not require use of the AutoHotKey tool.
The advanced and basic versions of the configuration file are not compatible with each other, so you should decide which version you want to use before customising the button assignments to suit your own preferences.
Centarea HID.ahk
This is the AutoHotKey script that performs the processing needed to improve the usability of the Ortek and Hama remote controls. For example, this script allows MediaPortal to be started from the Windows desktop by pressing the START button on the remote control. This script requires no modification by the user.
Centarea HID.ini
This is a standard Windows-format INI file that contains several settings which control the processing performed by the AutoHotKey script. This can be modified by the user.
Centarea HID.txt
This is a plain-text file that explains how to use the support pack.
install.bat
This is a batch script that installs the support pack files in the correct folders. Existing files in those folders are not overwritten -- they are moved to a backup folder that is located in the "InputDeviceMappings" folder. There is a corresponding uninstall.bat if you wish to discontinue use of the support pack.
Brief installation instructions
(1) Create a dedicated folder to contain the support pack. This folder can reside anywhere in your system, but avoid placing the dedicated folder in the "Team MediaPortal" folder tree. The folder can have any name that you choose, but the name Centarea HID (2024-01-30) is suggested.
(2) Download the zip file attached to this post, and place it in the dedicated folder. Unzip the zip file.
(3) Read the file "Centarea HID.txt" and decide whether you want to use the advanced configuration or the basic configuration.
(4) To start using the support pack, run "install.bat". The bat file will ask you whether you want to use the advanced configuration or the basic configuation. The installation will preserve existing files in a backup folder, and then copy the relevant files to their appropriate locations.
(5) If you want to use the advanced configuration, download and install the AutoHotKey tool. Reboot your system to start the Centarea HID AutoHotKey script.
Changes in version 2024-01-30
(1) The support pack works with all combinations of MP1 bitness and Windows bitness. In particular, it works with:
32-bit MP1 running on 32-bit Windows
32-bit MP1 running on 64-bit Windows
64-bit MP1 running on 64-bit Windows
(2) Only the AHK, BAT, and TXT files have changed; the INI and XML files have not changed. This means that you can continue to use your customised version of the XML file. Note: all files have their file date/time set to the values for the current release, even those where the content has not changed.
(3) Progress text is now displayed on the console during the installation.
(4) The "/b" option has been added to all of the "exit" statements in the install BAT file to stop the command window closing on exit from the BAT file. This allows you to review the progress text if desired.
(5) During the install you will be asked whether you wish to retain your existing INI and XML files.
(6) It is not valid to have both 32-bit MP1 and 64-bit MP1 installed on the same system. If both are found by the AHK script, the script invokes the 64-bit version of MP1.
(7) If the script detects a version of "MediaPortal.exe" running without any windows, it means that MP1 did not terminate completely when previously closed. This prevents MP1 restarting. To workaround this problem, the script terminates that instance of MP1 before starting a new instance. This was done by the previous release of this support pack. In the new release, the script additionally writes an entry to the file "Centarea HID.log" located in the MP1 logs folder. This will allow you to see how often this problem occurs on your system (but remember to avoid deleting this file if you "clear out" the log folder prior to running a test where you want to upload the logs for examination by one of the developers).
(8) The AHK script is written using AutoHotKey version 1 syntax, which cannot be processed by AutoHotKey version 2 (which uses different syntax). If you have version 2 installed, you should manually invoke "Centarea HID.ahk" while your system is connected to the internet. AutoHotKey version 2 will detect that the script is version 1, and offer to download and install the most-recent release of version 1. This will allow the Centarea HID script to run. Note that both versions of AutoHotKey can exist on the same system.
There is an AutoHotKey version-2 script for converting version-1 scripts to version 2 ("v2converter.ahk"), but sadly this script does not create a valid version-2 script; manual editing is required to correct the errors in the converted script.
-- from CyberSimian in the UK
Attachments
Last edited: