Hotstrings and the ú character?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
roysubs
Posts: 428
Joined: 29 Sep 2018, 16:37

Hotstrings and the ú character?

Post by roysubs » 08 Oct 2023, 02:31

I can't get certain characters to replace in HotStrings.
e.g.
::Ugluk::Uglúk ;

This always fails, generating the following on the page:
Uglk♦

What am I doing wrong, how should I setup this HotString?


roysubs
Posts: 428
Joined: 29 Sep 2018, 16:37

Re: Hotstrings and the ú character?

Post by roysubs » 08 Oct 2023, 04:49

When I open the file in Notepad++, it already says "UTF-8 BOM", and it doesn't work, so can you think of what else I need to change? :(
image.png
image.png (19.93 KiB) Viewed 722 times
Last edited by roysubs on 08 Oct 2023, 06:47, edited 1 time in total.

ahk7
Posts: 575
Joined: 06 Nov 2013, 16:35

Re: Hotstrings and the ú character?

Post by ahk7 » 08 Oct 2023, 04:56

Have you reloaded the script (just asking) - and are you sure you are running the unicode version of AutoHotkey (v1 also has a 32bit ansi version)

Try MsgBox % A_IsUnicode, it should say "1" - https://www.autohotkey.com/docs/v1/Variables.htm#IsUnicode

roysubs
Posts: 428
Joined: 29 Sep 2018, 16:37

Re: Hotstrings and the ú character?

Post by roysubs » 08 Oct 2023, 09:25

I'm running it with the 64-bit unicode version of 1.x ... Is there another way to generate a ú character, such as by a unicode string to invoke it or something (I'm not very knowledgable about this stuff, don't know how that would look).

All other accented characters that I invoke from hotstrings work perfectly, just this ú character that is causing me these problems.

ahk7
Posts: 575
Joined: 06 Nov 2013, 16:35

Re: Hotstrings and the ú character?

Post by ahk7 » 08 Oct 2023, 16:43

Stupid question but the the font in the target application actually have that character?
You could try the T option of the https://www.autohotkey.com/docs/v1/Hotstrings.htm#Options
(what v1 version are you running, latest is v1.1.37.01 at the moment)

User avatar
V0RT3X
Posts: 243
Joined: 20 May 2023, 21:59
Contact:

Re: Hotstrings and the ú character?

Post by V0RT3X » 08 Oct 2023, 19:03

Possibly try...?

Code: Select all

::Ugluk::Ugl{ASC 151}k

Post Reply

Return to “Ask for Help (v1)”