Sign in to follow this  
Followers 0
mud409

read info from page and copy for variable

6 posts in this topic

#1 ·  Posted (edited)

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



#2 ·  Posted (edited)

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

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

awesome, thanks....

Share this post


Link to post
Share on other sites

Your welcome :D


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  
Followers 0