Appropriate hot key is defined like this:
Code: Select all
#q::
SendInput {U+0301}
return
Code: Select all
#q::
SendInput {U+0301}
return
No, I don't. I can run AutoHotkey 3 times in a row and it will show me the error 2 out of 3 times. I don't change default keyboard layout between runs.lexikos wrote:I would guess that from time to time you randomly change your default keyboard layout to one where 'q' does not exist...
I've been using #q as a hotkey for maybe a decade already, and the bug reproduces for several years. It reproduces on all PCs that I'm using.lexikos wrote:It is unlikely to be a bug. If it matters, I have been using #q as a hotkey for years and never had that problem, except (as expected) when using a keyboard layout which does not assign the letter 'q' to a key.
I don't have any other keyboard/language related applications installed.Guest wrote:Perhaps the programs you're using do "something" to your keyboard layout, who knows. Perhaps another hotkey/hotstrings is sending a key-combo that switches your keyboard language and you don't notice. Or it is just a mystery
All other WinKey+Letter keys behave in the same way. An error message appears for each single WinKey+Letter hotkey I use in my script.Guest wrote:Is it only #q or other keys as well?
Code: Select all
#q::
MsgBox, % A_ThisHotkey
return
Code: Select all
LWin & q::
RWin & q::
MsgBox, % A_ThisHotkey
return
It appears that this is what causes the problem. Thanks for helping me to figure it out!jeeswg wrote:- What language settings do you use, have you ever changed them?
Is there any way to change this default behavior?lexikos wrote:Hotkeys are registered at program startup, using the keyboard layout which is active at the time. This is by design.
v1.1.27.00 wrote:Changed a-z to mean vk41-vk5A when absent from the keyboard layout, except with Raw mode or when sending single unmodified characters. This allows hotkeys and sent keyboard shortcuts to work more intuitively on certain non-English keyboard layouts.
Users browsing this forum: No registered users and 29 guests