Topic: TDhotkeys - access TotalMix FX and Driver Settings by keyb shortcuts
TDHotkeys stands for "TotalMix and Driver Setting Hotkeys". It is a tool written in AutoHotkey (AHK) v2 that is launched via the Startup folder, runs in the background, and allows TotalMix FX and RME Driver Settings windows to be opened and closed using keyboard shortcuts. This keyboard control makes for a wonderfully efficient workflow.
See: https://www.tonstudio-forum.de/blog/ent … eys-en-de/
This new program completely replaces the old AHK v1 script. It is a complete rewrite in AHK v2 because v1 has no longer been supported for some time. It therefore requires AHK v2 (64-bit).
The parallel installation of AHK v1 and v2 I have described in another blog article:
https://www.tonstudio-forum.de/blog/ent … ion-en-de/
That article also explains how to add two "Compile entries" to the Windows Explorer context menu for AHK v1 and v2 by using a PowerShell script which makes the two needed changes in the registry.
This allows the AHK script to be compiled into an executable program that can easily be added to the users autostart folder.
The current script is not just a simple rewrite of the existing script; it also comes with several new features.
New Features
Features of TDhotkeys 1.1.0(38) - rewrite to use classes, modules, libraries
------------------------------------------------------------------------------------
* Installation: terminates old version and sets up Autostart on demand
* Autostart offered at start if not set up, switched over after an update
* Autostart selectable in the tray menu
* Tray menu: Restart, e.g. after changing the configuration
* Tray menu: open install/runtime folder and Autostart folder
* Tool: Window Info delivers information for configuration for copy/paste
* Window Info: display updated only on change, no flicker
* Debug Log and Window Info: Close button at the right end
* User manual in English and German
* Restructured code, with main program, modules and reusable libraries
* Usage of classes to avoid global variables
1,103 lines of code (44 %), 1,165 comment (46 %), 256 blank (10 %).
Features of TDhotkeys 1.0.0(30) - Complete Rewrite for AutoHotkey v2
-------------------------------------------------------------------------------
* Hotkey for TotalMix FX and driver settings for one or more drivers
Bring application to the front or close, or (re-)start if needed
* "In front" means visually in front, not only focused.
* Exact title matching not to show hidden helper windows
* Debug Log (tray) can be started on demand
* Window Info (tray) provides information for the config for copy/paste
* Build 1.0.0(30): 1 .ahk source file with 1,714 lines - 664 lines of code
(39 %), 777 comment lines (45 %), 273 blank lines (16 %).
Debug Log
Debug Log displays information about the installation, the system, the AHK version, and which keyboard shortcuts are mapped to which programmes.
"!F1" is AutoHotkey syntax and means the keyboard shortcut "ALT-F1". In this example, it toggles the TotalMix FX window and also starts TotalMix FX if it is not already running. The RME Driver Settings windows are started using ALT-F2 and ALT-F3.
Debug Log also shows the TotalMix and RME Driver Settings processes, including their PIDs, their full paths, and whether the programmes were found at those locations.
The subsequent activity of TDhotkeys is logged as well, which can be useful for troubleshooting.
Window Info
This is a very useful function for determining the name of a window. This is required when adapting the software to other RME drivers.
Window Name and ExactTitle := true are the relevant settings needed when adapting the configuration to your own setup.
Window Position
The window size and position of "Debug Log" and "Window info" are remembered in a file config.ini.
A few pictures for illustration:

The Taskbar.
https://www.tonstudio-forum.de/file-download/2805/
Mouse over shows version and key mapping.
https://www.tonstudio-forum.de/file-download/2806/
The pull-down menu with the new features "Debug log" and "Window info".
https://www.tonstudio-forum.de/file-download/2807/
Example of a Debug Log with useful information for troubleshooting.
https://www.tonstudio-forum.de/file-download/2809/
Example output of "Window info" with information of the HDSPe FX driver setting window.
https://www.tonstudio-forum.de/file-download/2814/
Example output of "Window info" with information of the MADIface driver setting window.
https://www.tonstudio-forum.de/file-download/2815/
Example output of "Window info" for the TotalMix FX 2.1 Beta6 window.
https://www.tonstudio-forum.de/file-download/2810/
The config.ini file where size and position of "Debug Log" and "Window Info" windows are remembered.
https://www.tonstudio-forum.de/file-download/2811/
The customization section in the source file TDhotkeys.ahk (syntax changed when using classes!)
https://www.tonstudio-forum.de/file-download/2813/
Showing the two compile entries in the context menu of Windows Explorer, created by the PowerShell script.
https://www.tonstudio-forum.de/file-download/2812/