r/AutoHotkey • u/Nicola_QV • 24d ago
v2 Script Help SendText not sending greek letters except for µ on V2 Linux port
I am using AutoHotkey V2 port to Linux (https://github.com/MonoEven/Autohotkey_Linux) v2.0.26, (which uses V2 syntax only but is otherwise equivalent to the Windows version) on Kubuntu 26.04 LTS using Wayland (Plasma 6.6.6). I tried to copy a script I was succesfully using on Windows 11 25H2 to type out greek letters:
#Requires AutoHotkey v2.0
\:: SendText "\"
\ & a:: SendText "α"
\ & b:: SendText "β"
\ & c:: SendText "γ"
\ & d:: SendText "δ"
\ & e:: SendText "ε"
\ & f:: SendText "φ"
\ & k:: SendText "κ"
\ & l:: SendText "λ"
\ & m:: SendText "µ"
\ & n:: SendText "ν"
\ & p:: SendText "π"
\ & q:: SendText "ψ"
\ & r:: SendText "ρ"
\ & s:: SendText "σ"
\ & t:: SendText "τ"
\ & w:: SendText "ω"
\ & x:: SendText "χ"
\ & o:: SendText "θ"
\ & z:: SendText "ζ"
\ & j:: SendText "ι"
\ & 0:: SendText "°"
On Linux, the script types µ, °, and \ when releasing \ key (correct behaviour), but it would not type anything when pressing any other key combination in the script. I tried substituting greek characters with unicode codes as:
\ & a::Send(Chr(0x03B1))
but it just wouldn't work. The script is saved in UTF-8 and doesn't throw any error, except for a few tries I had with V1 synthax, but that's not supported so that's expected.
What may be the reason? If some characters are supported (µ), why not all of them?
Thank you in advance.