How to send the ` character to Unix

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
DengyDon
Posts: 5
Joined: 09 Oct 2017, 04:27

How to send the ` character to Unix

23 May 2018, 07:18

Hi,

I want to have a text substitution that is a Unix command

the command starts with

for x in `ls -1`

The command works on Unix, but if I include the same text in my .ahk file like

::bebop::for x in `ls -1`

when I use the short cut the ` character is not part of the text that replaces the short cut so I get

for x in ls -1

and this fails. Any ideas how I can have AHK send the ` character?

Thanks in advance.
D
DengyDon
Posts: 5
Joined: 09 Oct 2017, 04:27

Re: How to send the ` character to Unix

23 May 2018, 07:24

Could I try ?

for x in {ALTDOWN}{Numpad9}{Numpad6}{ALTUP}ls -1{ALTDOWN}{Numpad9}{Numpad6}{ALTUP}
Guest

Re: How to send the ` character to Unix

23 May 2018, 07:30

The ` char (back tic) is the AutoHotkey escape character, so just double it (Escape it) ``
See https://autohotkey.com/docs/commands/_EscapeChar.htm
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: How to send the ` character to Unix

23 May 2018, 09:06

or use the T or R(less recommended) hotstring flag for raw text

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, JoeWinograd, mikeyww, Nerafius, RandomBoy, Spawnova and 117 guests