Problem assigning danish characters

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
riminipeter
Posts: 3
Joined: 14 Apr 2021, 12:38

Problem assigning danish characters

Post by riminipeter » 14 Apr 2021, 12:44

Hi, I am new to AHK, and trying to make a script assigning some danish keys, but it doesnt seem AHK will accept it.

I try do these:

Code: Select all

o::ø
e::æ
a::å
running the AHK file as administrator will give this error in window:
Error at line 1.

Line text: Ä
Error: This line does not contain a recognized action.

The program will exit.


If I do it with english keys, all are fine, keys assign as I wish.

Can somebody help? :?

gregster
Posts: 9001
Joined: 30 Sep 2013, 06:48

Re: Problem assigning danish characters

Post by gregster » 14 Apr 2021, 12:59

This runs fine for me on AHK v1.1.33.06 (without admin rights):

Code: Select all

o::ø
e::æ
a::å
I just wonder where you got the Ä in line 1 from - is this really the complete script?

Anyway, make sure to save the script in UTF-8 with BOM encoding: https://www.autohotkey.com/docs/FAQ.htm#nonascii
That's usually the problem...

riminipeter
Posts: 3
Joined: 14 Apr 2021, 12:38

Re: Problem assigning danish characters

Post by riminipeter » 14 Apr 2021, 13:21

Thanks a lot, it worked.... I had to save as UTF-8 (med STYKLISTE) in danish ...

Can you also help me what to do to make the script start up automatically on startup?

Regards, :thumbup:

Peter

gregster
Posts: 9001
Joined: 30 Sep 2013, 06:48

Re: Problem assigning danish characters

Post by gregster » 14 Apr 2021, 13:26

Sure, please have a look at https://www.autohotkey.com/docs/FAQ.htm#Startup

riminipeter wrote:
14 Apr 2021, 13:21
I had to save as UTF-8 (med STYKLISTE) in danish ...
Thanks for the feedback! It might help other danish users in the future.

riminipeter
Posts: 3
Joined: 14 Apr 2021, 12:38

Re: Problem assigning danish characters

Post by riminipeter » 14 Apr 2021, 13:46

Thanks mate :thumbup:

Post Reply

Return to “Ask for Help (v1)”