
Your advice and posts have been more help then reading documentation/other info for a week. I just wanted to make sure that in the future someone stumbling onto this post can just copy/paste like I did from many other threads. How can I make the program write the output (after searching for all matching words) to a separate text file? I have been banging my head against the wall on that one all day today.ĪutoBert, please don't be sorry. $source = _INetGetSource ( "" ) get html FileWrite ( & "\url.html", $source ) save file Local $read = FileRead ( & "\url.html" ) read file Local $readtitle = _StringBetween ( $read, ' ' ) read text from file If IsArray ( $readtitle ) Then Local $newtitle = StringReplace ( $readtitle, '" tabindex="1" >', " " ) MsgBox ( 64, "Finished", "Show" & $newtitle ) display first found string Else MsgBox ( 64, "Finished", "Nothing found" ) display hint EndIf Thanks!īased on this page I was able to make it work with just one minor adjustment - putting parenthesis around the array: Specifically looking for help with dealing with text files (input, manipulation, output), intro programming (loops, variables, etc.) and anything else that might be able to help someone like me. Just have basic knowledge of creating batch files and super basic to HTML and CSS, so anything helps. Also looking for any tips on where to start with AutoIT. Just seeing what you see in the image attached.Īny help with this issue would be appreciated. Not really sure why I cant even see the one proper result. #include needed for get source (hmtl) #include needed for stringbetween #include needed for msgbox $source = _INetGetSource ( "" ) get html FileWrite ( & "\url.html", $source ) save file Local $read = FileRead ( & "\url.html" ) read file Local $readtitle = _StringBetween ( $read, ' ' ) read text from file Local $newtitle = StringReplace ( $readtitle, '" tabindex="1" >', " " ) MsgBox ( 64, "Finished", "Show" & $newtitle ) display first found stringĪt this point I am just outputting to a MsgBox to see the results of my strings. Run though the original text file with steps 2 and 3 until no more text is found

Remove text from the newly extracted data (always the same -> " tabindex="1" >)Ĥ.

Extract the data between two set HTML tags ( Between this -> )ģ. I have been asked to convert a few hundred web pages to text and get certain text out.
