Alt Codes

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
BILLYMAYSHERE

Alt Codes

18 Oct 2017, 17:44

I am trying to make a script that will insert an alt code after every letter I type.

Such as
A::Send A{Alt 0151}
return
B::Send B{Alt 0151}
return

and so on.

Having issues with everything about it, as I am a huge noob with stuff like this.
User avatar
Exaskryz
Posts: 2882
Joined: 17 Oct 2015, 20:28

Re: Alt Codes

18 Oct 2017, 21:24

See documentation on Send.

Send A{ASC 0151} or Send B{U+0151}

But these produce different characters for me, so, double check what you want:

Code: Select all

^7::
Send {ASC 0151}{U+0151}{ASC 151}{U+151}
return

; results in —őùő
Now, of note, You may want to use the ~ modifier to make the native function of the hotkey work. Alternatively, it is possible your hotkeys recurse. So, you may want the $ modifier which prevents Send from triggering that hotkey.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Haris00911, RussF, Swiftly9767 and 283 guests