mlloz Posted September 14, 2008 Share Posted September 14, 2008 hello guys, how can the script read the HTML code while its running? Explain: I want the script to open a specific address, then read some lines inside the source of the open page.. Link to comment Share on other sites More sharing options...
Community On Patrol Posted September 14, 2008 Share Posted September 14, 2008 Hi mlloz, Please create descriptive topics. Using one word topics makes it really difficult to use the search feature, and those that could probably answer your question will probably not even read your thread. Doing it enough could cause your posting privileges to be taken away all together, and we don't want that . Thanks. Link to comment Share on other sites More sharing options...
mlloz Posted September 14, 2008 Author Share Posted September 14, 2008 anyone can help me with that? Link to comment Share on other sites More sharing options...
goldenix Posted September 14, 2008 Share Posted September 14, 2008 $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET",'http://www.autoitscript.com/forum/index.php) ; navigate to page $oHTTP.Send() $HTMLSource = $oHTTP.Responsetext $_Arrayline = StringSplit($HTMLSource, @LF) ; this is the Array $_Arrayline We put source code into an array for $i = 1 to $_Arrayline[0] If StringInStr($_Arrayline[$i],'mainimg') Then ; search source we put into an arry for word mainimg MsgBox(0,'','Text was found') Else MsgBox(0,'','Text not found') EndIf Next My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
mlloz Posted September 14, 2008 Author Share Posted September 14, 2008 a very big huge THANK for you goldenix Link to comment Share on other sites More sharing options...
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