Auto Switching
Auto Switching allows the TechyPad to automatically change profiles based on the active application on your PC.
How It Works
The ActiveWindowMonitor detects active applications by polling the system every 100ms. It uses both Window Title and Executable Path:
- Window Title: It extracts the current window title of the foreground application using
GetForegroundWindow()andSendMessageTimeoutWwithWM_GETTEXT. - Executable Name/Path: It queries the full module path of the active process (
QueryFullProcessImageNameW). - UWP App Handling: For Windows Store/UWP apps, it specifically digs down using
EnumChildWindowsto find the actual underlying child process executable path.
Triggering a Switch
An auto-switch profile event is triggered whenever either the full executable path or the window title of the foreground window changes and matches one of your linked profiles.