Jump to content
Sign in to follow this  


Recommended Posts


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
Community On Patrol

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


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 
    $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')
                MsgBox(0,'','Text not found')

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.