Send apostrophe key ` with key ´ Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kai
Posts: 18
Joined: 30 Aug 2017, 01:31

Send apostrophe key ` with key ´

20 Feb 2018, 08:37

I have a German keyboard and want that a press of the apostrophe key ` will send the gravis apostrophe key ´ (used in programming).

This is my script, which does not work:

Code: Select all

; make shift+graphis-apostrophe+space accessible through akut-apostrophe
SC00D:: ; Send apostrophe key ` with key ´ (has hex value "00D")
	String := "` "
	SendRaw %String%
return
Seems that AHK or Windows has problems with the apostrophe...

I can send other keys, e. g. letters "abc" with the same script, this works:

Code: Select all

; make shift+graphis-apostrophe+space accessible through akut-apostrophe
SC00D:: ; Send apostrophe key ` with key ´ (has hex value "00D")
	String := "abc"
	SendRaw %String%
return
Any help appreciated.
kai
Posts: 18
Joined: 30 Aug 2017, 01:31

Re: Send apostrophe key ` with key ´  Topic is solved

20 Feb 2018, 08:46

Just found out that the ` must be escaped by ironically ` :-)

https://autohotkey.com/docs/commands/Send.htm

; make shift+graphis-apostrophe+space accessible through akut-apostrophe
SC00D:: ; Send apostrophe key ` with key ´ (has hex value "00D")
String := "`` "
SendRaw %String%
return

Solution for this question too: https://www.stacklounge.de/1097/einen-a ... 1100#c1100

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Holarctic, ishida20, jameswrightesq, Lem2001 and 397 guests