So, i have a txt:
000000
FFFFFF
FF0000
880808
EE4B2B
And the txt is not part of my ahk txt. I want store the first line only in a variable.
Then i would use send:%var%
and then i would store the next line
I was thinking i would have a variable to indicate what line i am on
Thank you
How to get a txt and how to copy just 1 line
Re: How to get a txt and how to copy just 1 line
If you mean that’s in a file, there are several ways to accomplish this.
- Use a Loop and FileReadLine. Only recommended for small files.
- Use a file reading loop. Also only recommended for small files.
- Use FileRead and a parsing loop.
- Use fileRead, StrSplit(), and a For-loop.