DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Double-Esc = Close Program/Window  (Read 7,811 times)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 563
Double-Esc = Close Program/Window
« on: December 29, 2021, 11: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

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Double-Esc = Close Program/Window
« Reply #1 on: December 30, 2021, 01:08 AM »
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 :-*
« Last Edit: December 30, 2021, 01:14 AM by publicdomain »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Double-Esc = Close Program/Window
« Reply #2 on: January 23, 2022, 10: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)
« Last Edit: January 24, 2022, 12:36 AM by publicdomain »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 563
Re: Double-Esc = Close Program/Window
« Reply #3 on: January 24, 2022, 12:04 AM »
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
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: Double-Esc = Close Program/Window
« Reply #4 on: January 24, 2022, 04:48 PM »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Double-Esc = Close Program/Window
« Reply #5 on: January 24, 2022, 07:02 PM »
I made one by request in 2018 https://www.donationcoder.com/forum/index.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:)
« Last Edit: January 24, 2022, 07:19 PM by publicdomain »

Original address: https://www.donationcoder.com/forum/index.php?topic=52030.0