According to the manual:
Raw mode wrote:
The SendRaw command sends the keystrokes exactly as they appear rather than translating {Enter} to an ENTER keystroke, ^c to Control-C, etc. To use raw mode with SendInput, SendPlay, or SendEvent, write {Raw} as the first item in the string; for example: SendInput {Raw}abc
For instance this won't send the backticks:
Code:
`::SendInput {raw}FileAppend, %A_LoopReadLine%`, %Subref%`n
and this one won't even run:
Code:
F12::SendRaw, `
I get the error
Code:
---------------------------
Test Script.ahk
---------------------------
Error at line 5.
Line Text: SendRaw,
Error: "SendRaw" requires at least 1 parameter.
The program will exit.
---------------------------
OK
---------------------------
If the Raw mode send keystrokes exactly as they appear then it shouldn't treat the backtick as an escape character.
Even this fails:
Code:
`::SendInput {raw}FileAppend, %A_LoopReadLine%``, %Subref%``n
Using that ^ code, it actually sends this:
Code:
FileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , nFileAppend, , n
However, this does work:
Code:
F12::SendRaw, ``
Tested on AHK basic and AHK_L under XP sp3 x86
David