Jump to content
Sign in to follow this  
gil900

Is there a way to load page without stopping the script?

Recommended Posts

gil900

hello,

i have pages that i need to load them.

when i use inetread(), so If pages are slow for some reason so inetread() stoping the script..

this is big problem. i want to load page and wait for response without stopping the script.

so while the script waiting for response, the script will continue to work.

this is the page for example that i want to read:

https://googledrive.com/host/0B8NUp5hGnbOvZ3hHVFJNci1MVU0

i tried to read this page with WinHttp.au3 but without success and i don't know if winhttp can read pages without stopping the script...

if you know a way to read such pages without stopping the script(while waiting for response/the page will fully load) so please share example for that.

Thank you very much!

Share this post


Link to post
Share on other sites
water

Use InetGet to read the file in the background.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
gil900

Use InetGet to read the file in the background.

but InetGet download the page to the hardisk and i want to download to the memory so i will have

normal variable that equal to the text in the page.

i have all what i nead to read from such variable. ( iniread() not working on text variables. only on files so i had to to write functions that do exactly what iniread does but on text variables.)

Share this post


Link to post
Share on other sites
water

Then when the download has finished do a FileRead and you are done.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
gil900

Then when the download has finished do a FileRead and you are done.

ok but it sounds stupid ..

there is no way to save the file in memory?

Share this post


Link to post
Share on other sites
water

Why does it sound stupid. You simply add two lines of code. One to read the file to memory and a second to delete the file. Done.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Chimp

take a look >here


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
gil900

Why does it sound stupid. You simply add two lines of code. One to read the file to memory and a second to delete the file. Done.

ok.. and how can i stop inetget? i want to limit the time that inetget() trying to receive the file.

i have looked in the udf and i understand that InetClose()  can stop inetget

Share this post


Link to post
Share on other sites
water

You can find an example in the help file for INetget. Count the time it takes and cancel the download if not finished in the requested time.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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  

×