AHK 1.1.26.00 Win8.1 View Key Info won't refresh
Posted: 17 Jun 2017, 07:31
I've just installed AHK 1.1.26.00 on a Windows 8.1 system. I wrote a tiny script so I could look at keyboard scancodes:
#InstallKeybdHook
MsgBox, While blah blah
, and more blahs
The idea is that the message box (which in my real script has rather longer and more meaningful text than this example
does) holds the script up so I can use the systray icon to Open the main window. Then View -> Key History & Script Info
lets me see key information.
However... there's a problem with View. Although its display says "Press [F5] to refresh" that simply does nothing. I /can/
get the display refreshed, but only by clicking View -> Refresh.
I'm also puzzled by the text displayed by MsgBox: the comma at the start of the third line of the script is meant, I thought,
to indicate continuation from the previous line? The displayed text IS continued, but the comma is displayed as well. Is
that meant to happen?
I've also found that sometimes there's no systray icon, which makes the whole thing useless. I clicked the taskbar up-arrow
icon (to see if there was anything relevant in Control Panel - Notifications) and found that there were about a dozen separate
AHK icons listed there, all set as 'Only show notifications'. I altered ONE of them to 'Show icon and notifications' & the settings
of about eight of those listed all changed. I made the same alteration to ONE of the remaining entries and all the others all
changed. I had only so far tried two scripts, so this suggests that Windows is trying to track lots of per-script separate icons.
But, when I installed AHK, I explicitly chose NOT to have separate systray icons. I then tried starting my test script, and before
closing its Msgbox, starting it again. YES, TWO systray icons appeared. That's clearly not right.
Also, sometimes when I run my test script, even when its MsgBox has been closed, the systray AHK icon remains on the tray. I'd
expect it to vanish when the script's no longer active.
Lastly, when I first read the information in the help file about using the KeyHistory command, or View -> Key... I was perplexed
by the reference to the "main window". There's no indexed entry in the help file for "main window". It wasn't at all clear to me how
one would get a "main window" to display. I'm fairly sure that my first experiments didn't have a systray icon at all.
#InstallKeybdHook
MsgBox, While blah blah
, and more blahs
The idea is that the message box (which in my real script has rather longer and more meaningful text than this example
does) holds the script up so I can use the systray icon to Open the main window. Then View -> Key History & Script Info
lets me see key information.
However... there's a problem with View. Although its display says "Press [F5] to refresh" that simply does nothing. I /can/
get the display refreshed, but only by clicking View -> Refresh.
I'm also puzzled by the text displayed by MsgBox: the comma at the start of the third line of the script is meant, I thought,
to indicate continuation from the previous line? The displayed text IS continued, but the comma is displayed as well. Is
that meant to happen?
I've also found that sometimes there's no systray icon, which makes the whole thing useless. I clicked the taskbar up-arrow
icon (to see if there was anything relevant in Control Panel - Notifications) and found that there were about a dozen separate
AHK icons listed there, all set as 'Only show notifications'. I altered ONE of them to 'Show icon and notifications' & the settings
of about eight of those listed all changed. I made the same alteration to ONE of the remaining entries and all the others all
changed. I had only so far tried two scripts, so this suggests that Windows is trying to track lots of per-script separate icons.
But, when I installed AHK, I explicitly chose NOT to have separate systray icons. I then tried starting my test script, and before
closing its Msgbox, starting it again. YES, TWO systray icons appeared. That's clearly not right.
Also, sometimes when I run my test script, even when its MsgBox has been closed, the systray AHK icon remains on the tray. I'd
expect it to vanish when the script's no longer active.
Lastly, when I first read the information in the help file about using the KeyHistory command, or View -> Key... I was perplexed
by the reference to the "main window". There's no indexed entry in the help file for "main window". It wasn't at all clear to me how
one would get a "main window" to display. I'm fairly sure that my first experiments didn't have a systray icon at all.