Skip to content

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:

  1. Window Title: It extracts the current window title of the foreground application using GetForegroundWindow() and SendMessageTimeoutW with WM_GETTEXT.
  2. Executable Name/Path: It queries the full module path of the active process (QueryFullProcessImageNameW).
  3. UWP App Handling: For Windows Store/UWP apps, it specifically digs down using EnumChildWindows to 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.