Tester
Joined: 06 Jul 2006 Posts: 48 Location: Poland
|
Posted: Tue Jul 11, 2006 8:56 pm Post subject: [Function] KeyHistoryExtended() - pseudo-realtime logging |
|
|
Because now I troubleshoot some complicated keyboard+mouse chords, then I often launch KeyHistory window. But it lacks of realtime feedback. So I wrote this simple function for refreshing KeyHistory window without use of keyboard (which of course would be logged too).
| Code: | 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: | Code: | | #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. |
|