AutoHotPie icon indicating copy to clipboard operation
AutoHotPie copied to clipboard

Add profiles by grabbing the executable of a focused window.

Open dumbeau opened this issue 2 years ago • 1 comments

In Pie-Menus V1, I used to have a method of adding profiles:

  1. Click a button to start a 5 second countdown.
  2. User focuses the desired window to add a profile for.
  3. When the countdown ends, grab the executable of the focused window.
  4. Prompt the user to add this profile. image

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". image

dumbeau avatar Sep 05 '22 17:09 dumbeau

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.

xan2622 avatar Sep 05 '22 18:09 xan2622

Dang, wish I saw that before I added this.

The "Get Focused Window" function has been added in v1.0.24

dumbeau avatar Oct 30 '22 03:10 dumbeau