0

This hotstring in my ahk file doesn't work:

::1\2::½

Other hotstrings work, but not this one. I assumed the problem was that backslash is a hotstring EndCharacter so I tried also doing:

#Hotstring EndChars -()[]{}:;'"/,.?!`n`s`t

But that makes no difference.

How can I get this hotstring to work?

4
  • 1
    It works for me as-written but you can try to escape the backslash to tell AHK you mean a literal backslash and not some control character. ::1`\2::½ Documentation: autohotkey.com/docs/v2/misc/EscapeChar.htm Commented Jun 14 at 13:15
  • 1
    It works for me too, are you pressing e.g. spacebar after it, to end the hotstring? What version of AHK exactly?
    – Destroy666
    Commented Jun 14 at 15:09
  • Since it works for you both, I must have some other problem. So now I realise that I'm using “\” in my hotstring but my “\” is itself hotkeyed from from a different key (I'm on a Mac keyboard but a windows machine). So I should probably close this question and websearch again for that problem, or else I'd be completely changing this question Commented Jun 17 at 7:42

0

You must log in to answer this question.

Browse other questions tagged .