topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 7:12 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Double-Esc = Close Program/Window  (Read 4005 times)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Double-Esc = Close Program/Window
« on: December 29, 2021, 05:12 PM »
Another request, Vic!

Others have tried this before on DonationCoder, but never got it quite right.

Wonder if you might want to give it a try.

Memory-resident program that adds ability to Double-Press the Escape key, and the current window, program closes.

Not at all a priority.  Just a useful little utility.

Thanks Vic!

And Happy New Year to you and everybody here!


publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Double-Esc = Close Program/Window
« Reply #1 on: December 29, 2021, 07:08 PM »
Just a useful little utility.

I can see the potential! GitHub repo @ https://github.com/publicdomain/escapist

We can do a global/low-level keyboard hook. I'm thinking configurable time span for counting as many presses as the user can do :) 2, 3, 4, 5... within -say- a one-second window.

It can also feature other actions such as maximize or minimize to be assigned.

Thanks Vic!

Rest assured it is my passion and my pleasure to assist the fellows with this active public domain service.

Happy new year ②⓪②② to you & yours as well, BUEN AMIGO :-*
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: December 29, 2021, 07:14 PM by publicdomain »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Double-Esc = Close Program/Window
« Reply #2 on: January 23, 2022, 04:34 PM »
It can also feature other actions such as maximize or minimize to be assigned.

As I code this useful Escapist proggie, the idea of assignable SHIFT+ESC and WIN+ESC combinations come to mind.

(Double-press for escape is a given)
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: January 23, 2022, 06:36 PM by publicdomain »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Double-Esc = Close Program/Window
« Reply #3 on: January 23, 2022, 06:04 PM »
Double-Esc to close current window is huge.  Looking forward to it.

Others here might come up with dangers of doing the above.  Hope they will. 

One possible issue:  Suppose you have your Internet browser open with 20 tabs you are going to read.  And you accidentally press Esc twice.  Well....

On my keyboard, Ctrl-Esc is a handy combination, yes, so good candidate to do something with.  Might, however, have to override a standard Windows action -- opening the menu, bottom-left corner.  But I would prefer to override, as I never use the combo for that purpose.


c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: Double-Esc = Close Program/Window
« Reply #4 on: January 24, 2022, 10:48 AM »
I made one by request in 2018 https://www.donation...ndex.php?topic=46749

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Double-Esc = Close Program/Window
« Reply #5 on: January 24, 2022, 01:02 PM »
I made one by request in 2018 https://www.donation...ndex.php?topic=46749

Thanks for the link c.! 8)

This may be called a "reimplementation" then :)



Double-Esc to close current window is huge.  Looking forward to it.

My pleasure! I'm finishing Contro's ini proggie to truly get this one rolling (I'm doing a "N.A.J." -- New Apps for January coding spree LoL)

On my keyboard, Ctrl-Esc is a handy combination, yes, so good candidate to do something with.  Might, however, have to override a standard Windows action

hehe, yeah! At this point in software history seems you're likely to hit shortcut keys for one program or the other, so I guess it's okay to have the ability since you can't keep every program in the known universe happy :-*

https://defkey.com/what-means/shift-esc

As an alternative to a shortcut/hotkey, the two separate presses can also be made like:

Esc + | = close.
Esc + 1 = minimize.
Esc + 2 = maximize.
Esc + 3 = bottom of z-order.
Esc + 4 = toggle topmost.
...

You get the gist! ... to gift an "ESCapist" app with multiple configurable functions that are useful for users (very open to ideas right now! :) We first dare to dream then make our dreams a reality :Thmbsup:)
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: January 24, 2022, 01:19 PM by publicdomain »