Hello, everyone help on this forum is top notch! I have a web site that I need to paste text from a CSV file into form fields one line at a time. I can do 10 lines per page then need to submit the form. The CSV file is very simple; it looks like this:
name1
name2
name3
etc
I have code below that I use to read the file line by line and then paste it into the web form and submit. (I'm sure someone could figure out of to accomplish with I wrote in a loop) However, I need to remove the 10 lines I just pasted into the form so I can run the script again. I've seen functions that can manipulate lists but I have not been successful in adapting them to my situation.
Code:
#SingleInstance force
;paste function
^1::
Send, {TAB}
Send, {TAB}
Send, {TAB}
FileReadline, OutputVar, names.csv, 1
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 2
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 3
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 4
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 5
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 6
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 7
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 8
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 9
Send, %outputvar%
Send, {TAB}
FileReadline, OutputVar, names.csv, 10
Send, %outputvar%
Send, {TAB}
Send, {ENTER}
I would like to have a script that reads a line, pasts the line in, removes the line from the CSV file, then pasts the next line in 10 times. Any help appriciated.