I couldn't find anything about this issue in this forum and I hope this is the right place:
I have a simple script with which I want to past a line of text into any editor or application (see below). In most cases the text is only pasted after several trials (up to 10 times, I guess). The goal of this script is also to preserve the clipboard content. This leads to often this content being pasted instead of the desired line. I also tried to paste the line letter by letter but this is not helpful since I also want to paste longer texts. I also tried to enter several Wait instructions in the script, but this did also not help. Do you have any ideas what is wrong here?
I am using AHK v 1.1.30.03 on a Lenovo P50 with Win10.
The script I am using:
Code: Select all
; Use Ctrl + Shift + F6 to paste default line
^+F6::
ClipSaved := ClipboardAll
Clipboard = Some line of text to be pasted.
Send ^v
Clipboard := ClipSaved
ClipSaved = ; Free Memory
return
FreadLabosch