AutoHotPie
AutoHotPie copied to clipboard
Add profiles by grabbing the executable of a focused window.
In Pie-Menus V1, I used to have a method of adding profiles:
- Click a button to start a 5 second countdown.
- User focuses the desired window to add a profile for.
- When the countdown ends, grab the executable of the focused window.
- Prompt the user to add this profile.
This is more convenient than searching for an executable, and it will ensure that the correct executable is acquired.
Adding UWP applications or other windows native programs results in grabbing an incorrect executable. If you add a profile for notepad.exe in Win11, a profile will be created for that. But when notepad.exe runs, the application that is running is actually "Notepad.exe". Calculator has calc.exe but runs in "ApplicationFrameHost.exe".
It reminds me of AltSnap, which features a way to capture an application thanks to a "target icon"(that the user has to drag over the focussed application):
Toggle me.

Dang, wish I saw that before I added this.
The "Get Focused Window" function has been added in v1.0.24