Active the explorer or notepad as the window before minimized

PHOTO EMBED

Mon Dec 05 2022 00:55:31 GMT+0000 (Coordinated Universal Time)

Saved by @savabeh191

// In minimize
sp.StoreObject("minWindow", sp.WindowFromPoint(sp.GetCurrentMousePoint(), true));

// Later code
sp.GetStoredObject("minWindow").Activate();
content_copyCOPY

You can also just store the actual window object itself, so you don't have to try to find it again by title - it will be a direct reference to that window.

https://forum.strokesplus.net/posts/t8465-Active-the-explorer-or-notepad-as-the-window-before-minimized