Esc to close window

Share your favorite FastKeys commands
MirrorLa

Esc to close window

PostPosted by MirrorLa » Sun Jun 02, 2013 11:29 pm

Hi, I really like double esc for closing windows. The alternative would be to have a shortcut for closing by holding esc key a little longer. Would it be possible to create such command?

Thanks and congratulations for a good work.

Site Admin
User avatar
Posts: 627
Joined: Sat Mar 02, 2013 9:02 pm

Re: Esc to close window

PostPosted by Marko » Mon Jun 03, 2013 10:47 pm

Of course. :D
Try this one:

Shortcut: $Escape
Command:
Code: Select all
KeyWait, Escape, T0.5      ; half a second - change to your preference
If ErrorLevel
    PostMessage, 0x112, 0xF060,,, A
Else
    Send {Esc}

Tesla

Re: Esc to close window

PostPosted by Tesla » Thu Aug 15, 2013 2:55 pm

Great find, thanks. This should be put to preset library.

Site Admin
User avatar
Posts: 627
Joined: Sat Mar 02, 2013 9:02 pm

Re: Esc to close window

PostPosted by Marko » Mon Aug 19, 2013 11:39 am

It is already in.

Opelist

Re: Esc to close window

PostPosted by Opelist » Mon Dec 12, 2016 7:03 am

Great idea, so useful, thanks.


Last bumped by Anonymous on Mon Dec 12, 2016 7:03 am.

Return to User Commands and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest