Accents as dead keys?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Elaphe666
Posts: 131
Joined: 28 Nov 2015, 11:39

Accents as dead keys?

26 Mar 2017, 07:17

Hi. I'd like to know how to send the circumflex and grave accent symbols but as dead keys. Imagine I want the number 1 to act as ̂ but I want that when I press 1, nothing happens until I press another key, with the result: ô I'm trying to send asc and unicodes but something is not working.
Guest

Re: Accents as dead keys?

26 Mar 2017, 07:45

You could use Input, an example

Code: Select all

$1::
Input, OutputVar, I T0.3
If (OutputVar = "") ; if you just wait it will send 1
	Send 1
else If (OutputVar = "o")
	Send ô
else If (OutputVar = "a")
	Send â
else Send % OutputVar
Return
Elaphe666
Posts: 131
Joined: 28 Nov 2015, 11:39

Re: Accents as dead keys?

26 Mar 2017, 08:05

I got it. At least with my Spanish keyboard, it works this way:

Code: Select all

1:: ; circumflex
send +{sc01A}
return

2:: ; grave accent
send {sc01A}
return
I don't know if there is another way to make it work.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, Google [Bot], slowwd and 212 guests