KeyHistoryExtended() { IfWinNotExist, %A_Space%- AutoHotkey v KeyHistory else { SetTitleMatchMode, 2 SetTimer, KeyHistoryExtendedTimer, 20 } } KeyHistoryExtendedTimer: PostMessage, 0x111, 65410, 0,, %A_Space%- AutoHotkey v IfWinNotExist, %A_Space%- AutoHotkey v SetTimer, KeyHistoryExtendedTimer, Off return
Example of usage:
#F9::KeyHistoryExtended()Press above hotkey twice to turn on pseudo-realtime logging for KeyHistory window. And close KeyHistory window to turn realtime logging off.
The main drawback is that this window now continously stole focus. If anyone have idea how to prevent this then post some suggestions.