使用 autohotkey 附加带有剪贴板内容的 .txt 文档
Appending a .txt document with contents of clipboard using autohotkey
!w::
Sendinput ^c ; copy selection
Sleep 1000 ; gives time for the copy to work
FileAppend, `n`n%clipboard%, C:\Users\John Salter\ToAnki.txt; Add clipboard content to the end of a text file. Insert 2 new lines before inserting the clipboard with `n`n
Return
这是我一直在尝试使用的脚本。我担心 "John" 和 "Salter" 之间的 space,所以在其他位置尝试过,但仍然不起作用。
我没有收到任何错误消息。
剪贴板的内容被更改,所以问题出在第二行下面。
查看帮助文档,似乎可以使用 FileAppend。
有人能找出问题所在吗?
谢谢!
A comment flag that appears on the same line as a command is
not considered to mark a comment unless it has at least one space or
tab to its left.
FileAppend, `n`n%clipboard%, C:\Users\John Salter\ToAnki.txt ; Add clipboard content to the end of a text file. Insert 2 new lines before inserting the clipboard with `n`n
!w::
Sendinput ^c ; copy selection
Sleep 1000 ; gives time for the copy to work
FileAppend, `n`n%clipboard%, C:\Users\John Salter\ToAnki.txt; Add clipboard content to the end of a text file. Insert 2 new lines before inserting the clipboard with `n`n
Return
这是我一直在尝试使用的脚本。我担心 "John" 和 "Salter" 之间的 space,所以在其他位置尝试过,但仍然不起作用。
我没有收到任何错误消息。
剪贴板的内容被更改,所以问题出在第二行下面。
查看帮助文档,似乎可以使用 FileAppend。
有人能找出问题所在吗?
谢谢!
A comment flag that appears on the same line as a command is not considered to mark a comment unless it has at least one space or tab to its left.
FileAppend, `n`n%clipboard%, C:\Users\John Salter\ToAnki.txt ; Add clipboard content to the end of a text file. Insert 2 new lines before inserting the clipboard with `n`n