WindowSpy - Minimize instead of closing window

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

WindowSpy - Minimize instead of closing window

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 2806 times
Einfach nur ein toller Typ. :mrgreen:
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: WindowSpy - Minimize instead of closing window

31 Mar 2018, 01:43

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

Re: WindowSpy - Minimize instead of closing window

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
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: WindowSpy - Minimize instead of closing window

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:
Einfach nur ein toller Typ. :mrgreen:
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: WindowSpy - Minimize instead of closing window

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: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: WindowSpy - Minimize instead of closing window

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.
Einfach nur ein toller Typ. :mrgreen:

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 22 guests