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
How to send the ` character to Unix
Re: How to send the ` character to Unix
Could I try ?
for x in {ALTDOWN}{Numpad9}{Numpad6}{ALTUP}ls -1{ALTDOWN}{Numpad9}{Numpad6}{ALTUP}
for x in {ALTDOWN}{Numpad9}{Numpad6}{ALTUP}ls -1{ALTDOWN}{Numpad9}{Numpad6}{ALTUP}
Re: How to send the ` character to Unix
That works
Re: How to send the ` character to Unix
The ` char (back tic) is the AutoHotkey escape character, so just double it (Escape it) ``
See https://autohotkey.com/docs/commands/_EscapeChar.htm
See https://autohotkey.com/docs/commands/_EscapeChar.htm
Re: How to send the ` character to Unix
or use the T or R(less recommended) hotstring flag for raw text