I have really managed to confuse myself.
I have two simple loops one reads values and inputs into an active window
With this code below i would like to input each line from the text file into either excel in column A, or into a csv file where i can also input values from another loop.
Loop, read, %A_ScriptDir%\itemstosearch.txt
{
;"Say the first line in the text file is "Holy Moly" and the second one is "Jeremy Crackers""
;"Here i would like to put Holy Moly into cell 2 in column A in excel, and put jeremy crackers in cell 3 in Column A in the same ;spreadsheet"
Loop, Parse, A_LoopReadLine
{
x = %A_LoopField%
if (x = "")
{
Send {Space}
}
Else
{
Send {%x%}
}
}
}
The second loop returns "output" variable on each iteration which i would like to put into column b
I suppose i need to create an excel file in the script folder first, which i could name simply "results"
i read up about excel and csv files, but all i managed to was confuse myself
Any help would be greatly appreciated
Regards
Surreall




