0
votes

I have made a simple autohotkey script for inserting nordic letters on an english keyboard. Here is an example AHK script, where typing in ",e" is exchanged with the letter æ in my texts :

:c?*:,e:: ; small letter æ
send, æ
return

It works well on all text files, except those with the extension .tex. I use these .tex files for latex files that I edit in TexWorks.

How can I make my AHK script function in .tex files? Must I somewhere define which file extensions that my AHK scripts shall work for?

1
Not making sense that it doesn't work for files with certain extensions. Do you mean that it doesn't work in a certain file editing program? That "TexWorks" program? Also, the proper hotstring syntax would be just doing this :c?*:,e::æ0x464e
Hi. My scipt does not work in the TexWorks editor. When inserting the string ",e", the string is not exchanged witht the letter "æ", but remains as inserted.myotis
Does TexWorks get ran as admin? If so, you need to run your AHK script as admin as well.0x464e
I am not sure what it means that TexWorks "get ran as admin". Where do I check this?myotis
So I guess you don't have admin on whatever PC you're on. Some work PC? I wonder how you have AHK installed then though.. Well anyway, if you can't manage to test running your script as admin, I'm out of guesses for you. Never even used to TexWorks, I have no idea what it's like.0x464e

1 Answers

1
votes

From the comments:
TexWorks gets ran as admin, so the AHK script needs to be ran as admin as well so it can work in the TexWorks program.