Anyway I am trying to make a script that:
• Reads a line of the specified file, and Inputs it,
• Then goes onto the next line and does the same again.
The problem I am having is that I want to be able to insert comments (//) on a separate line, into that file and have the loop not input them, rather just skip over the line with the comment.
So this is what I have been using for a while just fine (I have only recently wanted comments).
THIS IS NOT THE FULL SCRIPT so plz ask if you require it
Code: Select all
Loop, Read, %Path%%Kit%
{
If Killloop = 1
Break
StringSplit, line, A_LoopReadLine, `n*
IfNotInString, line, // ;The problematic line (Possibly)
{
SendInput, {Enter}
Sleep 100
SendInput, %line1%
Sleep 100
SendInput, {Enter}
Sleep 100
}
}
return