检查是否存在串在文本文档

问题描述:

我有在它的多个字符串, 示例文本文档:检查是否存在串在文本文档

Enabled 
Start 
Mark 
David 
Dylan 

现在是什么我遇到越来越自动热键来阅读文本的烦恼文件,看看它是否存在,如果它存在,让它选择一个程序选项。所以如果它存在,它会去点击我的应用程序上的一个按钮。我将如何去做这件事?

从文档退房Loop, Readhttps://autohotkey.com/docs/commands/LoopReadFile.htm

Loop, Read, file.txt 
{ 
    line := A_LoopReadLine 
    if (line == "David") { 
     ; do something because David was found. 
     MsgBox, % "I'm sorry Dave, I'm afraid I can't do that." 
    } 
}