AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I make A_LoopReadline the first found line?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Jacquiline.Fjeldstad



Joined: 09 Jul 2009
Posts: 2
Location: Philippines

PostPosted: Sat Nov 14, 2009 1:01 pm    Post subject: How can I make A_LoopReadline the first found line? Reply with quote

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
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 1994
Location: GERMANY

PostPosted: Sat Nov 14, 2009 1:17 pm    Post subject: Reply with quote

Question
Code:
Loop,Read,file.txt
   IfInString,A_LoopReadLine,mytext
   {
      firstline:=A_LoopReadLine
      break
   }
MsgBox % firstline

_________________
AutoHotFile - ToolTip(n,text,title,options) Wink
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Nov 15, 2009 1:40 pm    Post subject: Reply with quote

Hi Hotkey,

Thanks!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group