To run the scrips, either run the .exe or download and install AutoHotkey from https://www.autohotkey.com/ and run the .ahk files. --------------------------------------------------------------------------------------- ---GenerateLayout_vx_xx (.ahk or .exe)--- --------------------------------------------------------------------------------------- This script will ask for a .csv file that contains the keywords to replace for the .svg files in the folder /scriptroot/Templates_Sorted. The script will then create a new folder in the script folder and name it according to the "GameName" tag in the .cvs file. The script will then generate .svg files into the “GameName” folder based on the .svg templates found in the Templates_Sorted folder. The generated files will mirror the folder structure in Templates_Sorted folder. You can rearrange templates/folders and/or add or delete templates to suit you needs. You can as an example remove all the US sized templates if you use A3/A4 sizes. In the generated files the @something@ tags in the template *.svg files will be replaced with the matching entry in the .cvs file. Currently there are templates for the Thrustmaster Warthog and the Thrustmaster F16 MFD's I've included two examples .cvs file for the DCS A10C and X4 (DCSA10C_Demo_A.cvs and X4.cvs) in the Defintion Files folder. Try running them as per the instructions below to generate layouts for the Warthog. ----------------------------------------------------------------------------- Usage: 1. Extract the files to a suitable folder. 2. Create a definition.csv file with your button assignments in the format detailed    below.          You can use the included .cvs template as a start (Template_TMWH_4MFD.csv). You can leave any entry blank if you don't have the hardware or haven't assigned the button within the game. 3. Run GenerateLayout_vx_xx (.ahk or .exe). 4. Select the .cvs you created. Previously generated SVG layouts will be overwritten. 5. Wait for the message "Done etc". 6. Open the Layouts\"GameName" folder and open the desired svg file, print etc     Included files are in A4, A3, Letter and Tabloid formats + MFD Inserts + 3:4 format usable as a KneeBoard plate in DCS (KB in the filename/directory). For Kneeboard you need to save/convert the svg. to jpeg. ----------------------------------------------------------------------------- CVS format: [svg tag],[button number],[replace svg tag with this] ----------------------------------------------------------------------------- Example, the line: S1,1,Gun First Stage Tells GenerateLayout_vx_xx (.ahk or .exe) to replace the @S1@ tag with "Gun First Stage" in all the template svg:s when generating a corresponding .svg files in the "GameName" folder. ----------------------------------------------------------------------------- The (1) and (2) suffix in the tags denotes shifted buttons (by using a modifier in DCS or TARGET) In order for the script to work the .csv file needs the following entries (at a minimum) GameName,,[gamename] Use # for comments The [button number] is not currently used by the GenerateLayout_vx_xx script, but is included as a convenient way to match the game mapping (since games generally only tell you the DX button number) to the .cvs file. You can leave this blank if you do your own files etc, example below: S1,,Gun First Stage S1,1,Gun First Stage are both valid CSV files. Note: The [button number] is used by the DCSMapper script to auto-generate definition files by exporting the DCS mappings to html (this is done within DCS under controls). See more below. ---------------------------------------------------------------------- ---Custom SVG files--- Size, layout etc can be changed in the included templates. All the graphics have been converted to vector format and can be scaled freely without loss of quality. You can make you own layout templates for other joysticks / controllers etc I use Inkscape for svg work. --------------------------------------------------------------------------------------- ---FindTags_vx_xx (.ahk or .exe)--- --------------------------------------------------------------------------------------- This script will look through a folder with .svg files to find all the @something@ tags in the files. Output is a file called tags.txt. Use this to as a helper generate a list of tags if you make you own .svg files for other joysticks/controllers or if you add tags to the included svg files. --------------------------------------------------------------------------------------- ---DCSMapper_vx_xx (.ahk or .exe)--- --------------------------------------------------------------------------------------- DCSMapper will create a definition file from the exported key bindings in DCS. Usage: 1. First, start DCS and do all the bindings you need, including any modifiers. 2. Under controls click the "Make HTML" and save the file/files to a folder. 3. Copy the Template_TMWH_4MFD.csv to a suitable location and rename it. Example: DCSA10C_V1.csv (example file located in \Definition Files\DCS) 4. Open the renamed definition file in Notepad or similar and change: a) [GameName], this can be anything, ex DCS_A10C b) Add any modifiers that you have used when binding "Modifier,[modifier number],[modifier button] [modifier number] corresponds to the number in parenthesis in the definition files. [modifier button] is the button used as a modifier in DCS. Example, you use JOY_BTN 4 as a modifier nbr 1, and when you press both the modifier and the Master Mode Control Button on the Warthog Stick (aka button S5 or DX 5) you go to the Weapon View. This will look like this in the exported HTML for the :´ "JOY_BTN4 - JOY_BTN5" F6 Released weapon view View DCSMapper will detect this when going through the exported HTML file and write the line "S5 (1),5,Weapon view" in the generated definition file. 5. Save the file. 6. Run DCSMapper and select the renamed definition file. Example: DCSA10C_V1.csv (example file located in \Definition Files\DCS). 7. Select the folder where you saved the exported HTML files. Example: \DCS Exported Keybinds\A-10CKEYMAPS\A-10C_2019_05_23 8. DCSMapper will now go through the selected definition file and the exported HTML files and map the bindings in the HTML files into a copy of the definition file. The new definition file has the same name as the file picked in step 6 but with the suffix "A" added to the end of the filename. The new definition file is in the same directory as the file picked in step 6. Example: DCSA10C_V1_A.csv (example file located in \Definition Files\DCS) 9. Run GenerateLayout_vx_xx and select the file generated in step 8. Example: DCSA10C_V1_A.csv (example file located in \Definition Files\DCS) Note: You can use -IGNORE- to stop DCSMapper adding the binding from the exported HTML file. Example EAC UP,24,,-IGNORE- I've included my own .cvs definition file and exported HTML for the DCS A10C as an example. Try running it (by following as per the instructions above to generate layoutsfor the Warthog. ------------------------------------------------------------------------- Example .cvs file (excerpt): #,, #,, Instructions: Replace text within [] with the appropriate info/button etc #,, #,, # Details,, #,, GameName,,DCS A10C Version,,V1 Author,,Oakes #,, # ----------------Modifiers (for DCSMapper only)---------------------,, #,, Modifiers can be used with DCS Mapper to auto-generate #,, definition files. Put the name of the buttons you use as #,, modifiers in DCS here. Check the exported html file for the correct #,, name. #,, Modifier,1,JOY_BTN4 Modifier,2,JOY_BTN3 #,, ..... #,, Modifier,[x],JOY_BTN[x] #,, # ----------------------------Stick-------------------------------,, #,, #,, For DCSMapperOnly. KeyMapFile tells DCSMapper where to look for   #,, Modifiers can be used with DCS Mapper to auto-generate the mappings #,, made in DCS for the specific device. Do not use .html to the end of the file name. #,, KeyMapFile,Joystick - HOTAS Warthog {D8CE4CE0-2963-11e8-8001-444553540000} #,, #,, #,, Button Format #,, [tag],[Button Nbr (used for auto mappers like DCS Mapper)],[replacement text] #,, #,, Example: S2,2,Weapon release will replace all instances of the text "@S2@" with #,, the text "Weapons release" for all the .SVG files in the Templates directory. #,, #,, # ---Stick Buttons---,, #,, #,, # Trigger Stage 1,, #,, S1,1,Gun First Stage S1 (1),1, S1 (2),1, #,, # Weapon Release Button,, #,, S2,2,Weapon release S2 (1),2,Weapon release S2 (2),2,Weapon release #,, # Nosewheel Steering Button - NSB,, #,, S3,3,NWS/Lase S3 (1),3, S3 (2),3, #,, # Pinkie Lever,, #,, S4,4,LAAP Engage/Disengage S4 (1),4, S4 (2),4,Time normal #,, # Master Mode Control Button,, #,, S5,5,Cycle Master Mode S5 (1),5,Weapon view S5 (2),5,WPN to TGT View #,, # Trigger Stage 2,, #,, S6,6,Gun Second Stage S6 (1),6, S6 (2),6,