Я хотел бы вызвать событие в AutoHotkey, когда пользователь дважды нажимает клавишу esc. Но пусть нажатие клавиши перехода переходит в приложение в фокусе, если оно не двойное нажатие (скажем, в течение секунды).
Как мне это сделать?
Я придумал это до сих пор, но я не могу понять, как проверить, чтобы второй клавиша escape-клавиши нажала:
~Esc::
Input, TextEntry1, L1 T1
endKey=%ErrorLevel%
if( endKey != "Timeout" )
{
; perform my double press operation
WinMinimize, A
}
return