Reputation: 3947
This code pastes a 1-lined text when WINKEY + ALT + C is pressed:
#!c::
SendInput, Some random text
Return
But I need to past a bigger text, with multiple lines.
Is there some kind of \n
that I can use? It would be great if I could just have the exact text in the txt file and AHK paste it as-is.
Upvotes: 1
Views: 2870
Reputation: 2312
Couple of ways.
#!c::
SendInput,
(
blah
blah
)
return
`n
:#!c::
SendInput, blah`n`n`n`n`n`nblah
return
sendmode
and/or handle characters in the text file that need to be escaped):#!c::
FileRead, blah, Path plus Name of Text File
SendInput, %blah%
return
Upvotes: 8