S.C.G.R. Posted January 16, 2006 Posted January 16, 2006 (edited) I was just wondering if their is anyway in Auto It to scan only the currently line of text in the document you are in and do something if it finds a line of text. Ive been trying to figure this out, but havent made any progress; so may be some of you Auto It Kings can help me here? Here is the code ive been messing with. $a = AutoItWinGetTitle() $b = FileOpen ( $a, 2 ) While 1 If FileReadLine( $b ) = "Error " Then ToolTip("I can fix that.") Else EndIf WEnd And thanks for your time. (And hopefuly answer too ) Edited January 16, 2006 by S.C.G.R.
ChrisL Posted January 16, 2006 Posted January 16, 2006 (edited) $File = Fileopen ("file.txt", 0) While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop If not StringinStr ($Line, "Text of line you want") > 0 then ;;;;do what you want here endif Wend FileClose ($File) Edited January 16, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now