Page 1 of 1

paste the content of a txt file line after line

Posted: May 12th, ’21, 05:04
by acquafastkeys
I wonder how to do this. Basically need to paste each line of a txt file into a input field and press "enter" every line.
Need to add some delay between inputs.
Hints ?

Re: paste the content of a txt file line after line

Posted: May 12th, ’21, 20:37
by Tom
This code will read the text file and paste each line, following by Enter key.
Is this what you are looking for?

Code: Select all

FileRead, OutputVar, presets.txt

Loop, Parse, OutputVar, `n, `r
	Send, %A_LoopField%{Enter}