I turned the grave accent deadkey into a hotkey.
However, it still fires a ` into the next empty space (expected behaviour: hà llo , reality: hà`llo, hàllo`).
Turning it into a hotstring gave the same results.
Anybody has the same issue?
Is it possible to make deadkeys "undeadkeys" in AHK?
Deadkey fires despite being turned into a hotkey or hotstring Topic is solved
Re: Deadkey fires despite being turned into a hotkey or hotstring
It helps if you post your script-- easier to debug it that way!
Re: Deadkey fires despite being turned into a hotkey or hotstring
Sorry:
and
[Mod edit: [code][/code] tags added.]
My OS is Windows 10. I tried it both in Word and Notepad.
Update: the stray ` is U+0060 ` (spacing) GRAVE ACCENT.
Code: Select all
`::
{
SendInput {U+0300}
}
return
Code: Select all
:?c*:``::
{
SendInput {U+0300}
}
return
My OS is Windows 10. I tried it both in Word and Notepad.
Update: the stray ` is U+0060 ` (spacing) GRAVE ACCENT.
Re: Deadkey fires despite being turned into a hotkey or hotstring
OK. I'm not sure exactly what you are trying to achieve, but many examples of using the accent symbols are available here on the forum. One example is below.
Alternatively, the backtick can be used as a hotkey if needed. Example is below.
Code: Select all
:*?:``a::á
:*?:``e::é
:*?:``i::í
:*?:``o::ó
:*?:``u::ú
:*?:``n::ñ
Code: Select all
`::Send f
Re: Deadkey fires despite being turned into a hotkey or hotstring
Thanks, but I try to make "flying diacritics" for Cyrillic characters. It works in principle (ы̀), if it were not for the additional spacing grave/acute/circumflex (ы̀`)... how to get rid of it?
This is likely because of the deadkeys status. Can you UNmake a deadkey in AHK?
This is likely because of the deadkeys status. Can you UNmake a deadkey in AHK?
Re: Deadkey fires despite being turned into a hotkey or hotstring
So just to be clear (based on your code above): instead of typing `a to get à (normal dead key behaviour), you want to type a` instead... ?
Edit:
If that's the case, this seems to work (on my keyboard layout which has ` as a dead key):Different editors seem to react differently to this, though. On some, space`a will also result in à, but with a different placement of `over the letter a - sligthly shifted to the left.
(the $ modifier prevents that sending ` will trigger it's own hotkey.)
Edit:
If that's the case, this seems to work (on my keyboard layout which has ` as a dead key):
Code: Select all
$`::SendInput {U+0300}
(the $ modifier prevents that sending ` will trigger it's own hotkey.)
Last edited by gregster on 14 May 2021, 19:49, edited 3 times in total.
Reason: Edited multiple times while testing.
Reason: Edited multiple times while testing.
Re: Deadkey fires despite being turned into a hotkey or hotstring Topic is solved
Thanks so much! does the trick!
Code: Select all
$
Who is online
Users browsing this forum: mmflume, yabab33299 and 129 guests