Jump to content

_INetGetSource Help!

Recommended Posts

$initxt = _INetGetSource('URLHERE')
    $initxt = StringRegExpReplace($initxt, '(?s).*?og:description" content="([^"]+).*', "$1")
    $initxt = StringReplace($initxt, ' ', @CRLF)
    $check = MsgBox($MB_SYSTEMMODAL, "", $initxt)

I am having a issue. I am using INet to get stuff from a webpage. It works up to a point and then that's it. It's not reading the whole webpage. 

The msg box displays what is on the website but at the end it stops with ... 

Everything I do I either end up messing up the whole display where it displays all html code along with whats on the webpage or If I leave it like this it doesn't read the whole page.... I'm kind of new to autoit. Thanks in advance !

Share this post

Link to post
Share on other sites

Hello and Welcome to the forum,


Maybe your MsgBox is full? You should use:

ConsoleWrite($initxt & @crlf)

for a better overview. I wouldn't recommend working with Msgboxes & Html code until it's full formated.


also you should go step by step, when you get an error or not the value you wanted.To startup this should show you the full html code in the console of Scite:

#include <Inet.au3>
$initxt = _INetGetSource('https://google.de',1)
    $initxt = StringReplace($initxt, '>', ">" & @CRLF)
    $check = ConsoleWrite ($initxt & @CRLF)

If it does, then you can go to modify with StringReplace or something.. I'm sure the problem isn't in the _InetGetSource()


To get more specific help, i would need to know which website you want to access and what exactly you want to do.



why do i get garbage when i buy garbage bags? <_<

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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...