Some tweaks with ESCAPE key

Share your favorite FastKeys commands
Post Reply
Admirer
Posts: 19
Joined: Aug 19th, ’19, 05:19

Post by Admirer » Aug 23rd, ’19, 10:51

Getting familiar with Fastkeys. A great utility indeed, ocean in a drop!

Can I achieve this function with Fastkeys -
The topmost window will be minimized as long as I hold Escape key, once I release it, it will be restored (maximized as before).

Thanks.
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Aug 23rd, ’19, 11:37

Good idea.
Shortcut: Escape (with hook option)

Code: Select all

WinGetTitle, Title, A 
WinHide, A
KeyWait, Esc
WinShow, %Title%
Admirer
Posts: 19
Joined: Aug 19th, ’19, 05:19

Post by Admirer » Aug 23rd, ’19, 17:22

Oh great
Is it possible to achieve the same using a Space key?

Tried the following but it interferes while typing -

Code: Select all

WinGetTitle, Title, A 
WinHide, A
KeyWait, Space
WinShow, %Title%
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Aug 24th, ’19, 20:20

Shortcut: Space (with $-Hook option)

Code: Select all

Send {Space}
KeyWait, Space, T0.6    ; 0.6 msec
If ErrorLevel
{
    WinGetTitle, Title, A 
    WinHide, A
    KeyWait, Space
    WinShow, %Title%
}
Admirer
Posts: 19
Joined: Aug 19th, ’19, 05:19

Post by Admirer » Aug 25th, ’19, 05:00

Great!
Post Reply