WindowSpy - Minimize instead of closing window

Propose new features and changes
User avatar
divanebaba
Posts: 743
Joined: 20 Dec 2016, 03:53
Location: Diaspora

WindowSpy - Minimize instead of closing window

Post by divanebaba » 30 Mar 2018, 16:07

Hi.

Much too often, I click onto close instead of desired minimizing.
Some programs have options to choose "Minimize instead of closing".

It would be a great advantage for careless user like me, implementing such a option to WindowSpy.

Thanks

For example, like below:
winspy.jpg
winspy.jpg (29.29 KiB) Viewed 479 times
[Starklichtbirne IQ >> 250!!] Dank deutscher Lehrerempfehlung, nur Süperdepp und Hartz4-Bezieher, statt Abitürient und Einkommensbezieher.
[Strong light bulb IQ >> 250!!] Thanks to german teacher's recommendation, willful and welfare recipient, instead of high school graduate and moneymaker.

Entering high school for foreign children is not prohibited in GERMANY, it's only made nearly impossible by government.
Virtually the only way - visiting high school abroad.

ADVERTISING: Patent pending strip accumulator - süper advanced technology - priceless inexpensive, space-saving, energy efficient - Patent priority for sale.
lexikos
Posts: 6175
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: WindowSpy - Minimize instead of closing window

Post by lexikos » 31 Mar 2018, 01:43

Why don't you just assign it to a hotkey?
User avatar
jeeswg
Posts: 5129
Joined: 19 Dec 2016, 01:58
Location: UK

Re: WindowSpy - Minimize instead of closing window

Post by jeeswg » 31 Mar 2018, 09:26

You could edit WindowSpy.ahk. (You might want to comment out #NoTrayIcon if you did this, to have access to the 'Exit' menu item.)

Code: Select all

;replace:
GuiClose:
ExitApp

;with:
GuiClose:
WinMinimize, % "ahk_id " hGui
return
User avatar
divanebaba
Posts: 743
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: WindowSpy - Minimize instead of closing window

Post by divanebaba » 31 Mar 2018, 15:43

As Window Spy is loaded very quick and modification is easy and already shown, both suggestions seem making more sense than my wish. :crazy:

@lexikos - Using a hotkey is best workaround, but it causes additionally checking "Follow mouse" everytime WinSpy is started.
(I'm flattered to be addressed personally by the chief developer.)

@jeeswg - It was not unknown for me, that the modification is just a little step for the developers.
I had my eyes on the benefits for the users.
Official modification makes collecting and maintaining needless.
(I like your posts, even if most of them are much too complicated for me.)

I'm not 250% sure, but using left mouse-click more carefully seems best option for now and for me. :mrgreen: :mrgreen:
[Starklichtbirne IQ >> 250!!] Dank deutscher Lehrerempfehlung, nur Süperdepp und Hartz4-Bezieher, statt Abitürient und Einkommensbezieher.
[Strong light bulb IQ >> 250!!] Thanks to german teacher's recommendation, willful and welfare recipient, instead of high school graduate and moneymaker.

Entering high school for foreign children is not prohibited in GERMANY, it's only made nearly impossible by government.
Virtually the only way - visiting high school abroad.

ADVERTISING: Patent pending strip accumulator - süper advanced technology - priceless inexpensive, space-saving, energy efficient - Patent priority for sale.
lexikos
Posts: 6175
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: WindowSpy - Minimize instead of closing window

Post by lexikos » 31 Mar 2018, 20:01

Using a hotkey is best workaround,
Forget workarounds; using a hotkey to open the tool regardless of whether it was already running is more efficient than opening it via Explorer or the tray icon and keeping it minimized.
but it causes additionally checking "Follow mouse" everytime WinSpy is started.

Code: Select all

Control Check,, Follow Mouse, Window Spy
User avatar
divanebaba
Posts: 743
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: WindowSpy - Minimize instead of closing window

Post by divanebaba » 01 Apr 2018, 13:31

Ok, you convinced me.
I chose a hotkey - modifying WindowSpy is as good but I want to avoid checking if newer versions of WindowSpy are present or not.

Code: Select all

Alt & w::
if WinExist("Window Spy" "ahk_class AutoHotkeyGUI")
	winactivate
else
{
	run C:\Program Files\AutoHotkey\WindowSpy.ahk
	sleep 300
	Control, check,, Follow Mouse, Window Spy
}
return
Thanks and happy Easter.

EDIT: added "ahk_class AutoHotkeyGUI", because without this, WinExist(...) can catch any window with "Window Spy" in its title.
[Starklichtbirne IQ >> 250!!] Dank deutscher Lehrerempfehlung, nur Süperdepp und Hartz4-Bezieher, statt Abitürient und Einkommensbezieher.
[Strong light bulb IQ >> 250!!] Thanks to german teacher's recommendation, willful and welfare recipient, instead of high school graduate and moneymaker.

Entering high school for foreign children is not prohibited in GERMANY, it's only made nearly impossible by government.
Virtually the only way - visiting high school abroad.

ADVERTISING: Patent pending strip accumulator - süper advanced technology - priceless inexpensive, space-saving, energy efficient - Patent priority for sale.
Post Reply

Return to “Wish List”