Good day.
I made a script it is easiest clipboard manager. It saves your text from clipboard to file and then using FileReadLine with A_Index to send each line in rotation.
Code: Select all
#SingleInstance force
Numpad1::
Send ^c
FileAppend, %clipboard% `n, %a_temp%\ClipBoardM.txt
Return
Numpad2::
Loop
{
FileReadLine, cpline, %a_temp%\ClipBoardM.txt, %A_Index%
if cpline =
{
MsgBox , , ,Choose a text, 1
goto, endx
}
if ErrorLevel
{
Sendinput, {Numpad2}
goto, endx
}
Send, %cpline%{BS}
KeyWait, Numpad2, D
}
endx:
Return
Numpad3::
FileDelete, %a_temp%\ClipBoardM.txt
MsgBox , , ,Cleared, 1
Reload
Return
Code: Select all
Send, %cpline%{BS}
I wish to use SendInput here because it faster then Send but...
You can not use SendInput it gaves wrong result instead of Send. With SendInput the result will be a whole lines from file but not an each lines in rotation.
To clearly understand what i mean I advice you to chek this script and see which result will be if you change Send on SendInput.