been away a long time but now I'm back and tried to do a thing that triggered an unexpected event.
I use an international keyboard layout as I need it to write in foreign languages, but unfortunately it doesn't take into account the nordic characters, that is ø å and æ and respective capitals. If your codepage doesn't allow to show them, they are ø, å and æ
So, I said, there are some keystrokes I don't really use, namely in the numpad, why not putting HKN at work? The script is as simple as it gets:
- Code: Select all
// øØ
<Hotkey ScrollLockOn NumPadEnter>
<SendPC local>
<SendFocusWin>
<text ø>
<Hotkey ScrollLockOn Shift NumPadEnter>
<SendPC local>
<SendFocusWin>
<Text Ø>
// åÅ
<Hotkey ScrollLockOn NumPadPlus>
<SendPC local>
<SendFocusWin>
<Text å>
<Hotkey ScrollLockOn Shift NumPadPlus>
<SendPC local>
<SendFocusWin>
<Text Å>
// æÆ
<Hotkey ScrollLockOn NumPadMinus>
<SendPC local>
<SendFocusWin>
<Text æ>
<Hotkey ScrollLockOn Shift NumPadMinus>
<SendPC local>
<SendFocusWin>
<Text Æ>
When I use the lowercase ones everything's fine.
As soon as I use an uppercase one, any of them, it works fine and shows the character in the window, but it locks. It's as if I sent a <KeyDown LAlt>: proof is that if I, say, press F4, it closes the window I was working on. Just press and release LAlt once, and everything gets back to normal, until of course you try to use one of the 3 capitals again.
Notice that, if you are working in a standard windows application like WordPad or OpenOffice, if you press LAlt it highlights the "File" menu; this side-effect instead does not, but the computer feeling the "hey-somebody-pressed-the-LAlt-key!" sensation is exactly the same.
Now I ran a couple other tests just to be sure, with other keystrokes: I tried Minus (the regular one, top right) and "J" as hotkeys but it behaves the same.
The behavior above is with "Clear modifiers before executing hotkey" unchecked.
A hint could be that if I check it, things become really strange, completely off: doesn't send the characters except here and there, sets modifiers as pressed, unsets them.. I really didn't investigate further but it might be useful to know.
It's not that big issue really, the program does what I need, but looks like a bug due to these strange characters; and since they are uncommon, maybe nobody noticed before. Or at least so it seems: I did a bit of research before posting, but I might have missed something of course, and that's very possible :P
Let me know if there's any further info that I can provide, to make things more clear.
Thanks for the attention :)
Cheers,
FreeANT
PS oh a thing: when you enable/disable the "Check for newer versions of HKN.." and press apply, the action reported is "Disabling foreground lock" instead of the right one. Just a formality, I guess.
