Parse your keyboard.html into a TARGET Macro File (.ttm)
This is a Powershell v3.0+ script.
1- Export your Bindings in HTML (C:\Users\<Login>\Saved Games\DCS\InputLayoutsTxt\<Plane Name>).
2- Place the script (.ps1) in your TARGET script files folder
3- Right clic on the script, "Execute with Powershell" then follow the instructions.
4- Once the script produced the .ttm file, you can use it with your TARGET Script as a Macro file.
IF THE SCRIPT FAILS TO RUN :
Then you need to change the Execution Policy of Powershell
- Launch Powershell.exe in Administrator mode
- Execute the following command : "Set-ExecutionPolicy RemoteSigned"
v1.6 - Compatibility with accents (ie French)
v1.5 - Replace "Δ" with "D" in labels (M-2000C)
v1.4 - Remove Axis Commands and duplicate labels.
v1.3 - Corrections "R_CTRL" -> "R_CTL" & "L_CTRL" -> "L_CTL" & "." ">" in labels
v1.2 - minor corrections (no changes in the output file)