Jump to content
Sign in to follow this  
mud409

read info from page and copy for variable

Recommended Posts

mud409

I've set this script up to check the file size of a file and if different download the file. I'd like to change it slightly, right now I'm using Inetgetsize to read filesize. what I'd like to do is check some info stored on the developers site that indicates the file has been updated.

http://kaillera.movsq.net/?dltxt

I'd like to copy each of these lines and put each one in a variable so I can compare it to other variables to see if there's a difference.... any suggestions?

Edited by mud409

Share this post


Link to post
Share on other sites
Uriziel01

StringSplit should help you. but dont give @CRLF as a delimeter, because you will receive blank lines, just make it like

$source=_INetGetSource('http://kaillera.movsq.net/?dltxt')

$source=StringStripCR($source)

$source=StringSplit($source, char(10))

:D You will get each line in an next cell of array :P

Edited by Uriziel01

Share this post


Link to post
Share on other sites
mud409

yeah but how do I check the page to even read the info?

Share this post


Link to post
Share on other sites
Uriziel01

What do you mean "check the page" ? _INetGetSource will read the page source.

#include <INet.au3>
#include <String.au3>
#include <array.au3>
$source=_INetGetSource('http://kaillera.movsq.net/?dltxt')
$source=StringStripCR($source)
$source=StringSplit($source, chr(10))
_ArrayDisplay($source,"ppp")

working code :D

Edited by Uriziel01

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.