Not sure where is the problem, but in this code every time I run code clipboard should be cleared and new values displayed, but it does not work. If I run code twice old clipboard values have been adding to new values.
1) Click Ctrl + u
2) Click Enter
3) Click Ctrl + u
Or maybe on your pc works find just on my something wrong.
I tried some combinations how to clear clipboard. One of them should definitely worked.
I can clear clipboard with Reload in the end of the code, but it is not right way.
Code: Select all
#SingleInstance, Force
SetKeyDelay, -1
^u::
clipboard := ""
clipboard =
var := clipboard
var := ""
clipboard := var
Loop 10
{
Random, caseId, 7810000, 7819000
caseIdData .= caseId . "`n"
}
MsgBox, % caseIdData
clipboard := caseIdData
;Reload
return