Sign in to follow this  
Followers 0
mlloz

HTML

5 posts in this topic

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..

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

anyone can help me with that? :)

Share this post


Link to post
Share on other sites

$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]

Share this post


Link to post
Share on other sites

a very big huge THANK for you goldenix :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0