paste the content of a txt file line after line

Discussion, questions and support.
Post Reply
acquafastkeys
Posts: 14
Joined: Feb 7th, ’21, 06:21

Post by acquafastkeys » May 12th, ’21, 05:04

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 ?
User avatar
Tom
Posts: 551
Joined: Nov 24th, ’15, 23:39

Post by Tom » May 12th, ’21, 20:37

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}
Post Reply