Jump to content
Sign in to follow this  
incepator

InetRead

Recommended Posts

incepator

Hello,

I have a question with a problem...

I using this part of the script:

BinaryToString(InetRead("www.site.com", 1))

Problem is function "InetRead", because not wait for page load.

Some items appear in a few seconds loading site...

Thanks, and sorry for bad my english, i`m from Romania.

Edited by incepator

Share this post


Link to post
Share on other sites
hannes08

Hi,

did you try using the _IE*() functions?


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites
Chimp

Hi incepator

maybe you should use InetGet() instead
it seems a better choice for your case.
take a look to the example in the help,
it also has a default parameter that says "Wait until the download is complete before continuing"

bye


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
incepator

@hannes08

Yes..._IE() functions is a alternative, but is not perfect, because request IE....

Other alternative, using BinaryToString, is not possible ?

@Pincopanco

I use the InetGet() function, but the result was the same oh the InetRead

Edited by incepator

Share this post


Link to post
Share on other sites
dragan

how about this:
 

Local $webURL = 'http://www.autoitscript.com/site'
Local $oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET",$webURL)
$oHTTP.Send()
$oHTTP.WaitForResponse()
Local $HTMLSource = $oHTTP.Responsetext
ConsoleWrite($HTMLSource & @CRLF)
$oHTTP = 0
  • Like 1

Share this post


Link to post
Share on other sites
incepator

Thanks @dragan, work this function...

Edited by incepator

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  

×