| View previous topic :: View next topic |
| Author |
Message |
Jacquiline.Fjeldstad
Joined: 09 Jul 2009 Posts: 2 Location: Philippines
|
Posted: Sat Nov 14, 2009 1:01 pm Post subject: How can I make A_LoopReadline the first found line? |
|
|
I wanted my Loop (read line) to give me the 1st line that matches my "search" word. How can I do that? please help..
thanks! |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 1994 Location: GERMANY
|
Posted: Sat Nov 14, 2009 1:17 pm Post subject: |
|
|
 | Code: | Loop,Read,file.txt
IfInString,A_LoopReadLine,mytext
{
firstline:=A_LoopReadLine
break
}
MsgBox % firstline |
_________________ AutoHotFile - ToolTip(n,text,title,options) |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Nov 15, 2009 1:40 pm Post subject: |
|
|
Hi Hotkey,
Thanks! |
|
| Back to top |
|
 |
|