I have a textual htm file saved locally on my machine and I would like to copy the content of it into Clipboard using an AutoHotKey script. I tried:
FileRead, Clipboard, *c C:Users%A_UserName%AppDataLocalTempfile.htm
and
UrlDownloadToFile, C:Users%A_UserName%AppDataLocalTempfile.htm, NewTextFile.txt
But neither of them worked. The only workaround I could think of, was to open the htm file in browser using:
Run, C:Users%A_UserName%AppDataLocalTempfile.htm
and Ctrl+A and next Ctrl+C but that's not ideal.
