Gordoni Posted March 19, 2011 Posted March 19, 2011 (edited) I would like to make script which detects changes on website. #include <INet.au3> Global $cipka = InetGetSize("") WHile 1 $cipka2 = InetGetSize("") If $cipka > $cipka2 Then MsgBox(4096,"", "ALERT.") ElseIf $cipka < $cipka2 Then MsgBox(4096,"", "ALERT.") EndiF Wend This is my code and doesn't work . Any ideas? ;; Edited May 29, 2011 by Gordoni
Bowmore Posted March 19, 2011 Posted March 19, 2011 (edited) InetGetSize requires a full URLthis will workInetGetSize("http://www.cyberload.pl/test.txt")this will not workInetGetSize("www.cyberload.pl/test.txt") Edited March 19, 2011 by Bowmore "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook
somdcomputerguy Posted March 19, 2011 Posted March 19, 2011 If the page has text that changes, you can use this code to detect that. #include <INet.au3> Local $URL = "http://somesite.com/pagetocheck.html", _ $Text = "Blah, blah blah blah", _ $Source = _INetGetSource($URL) If StringInStr($Source, $Text) = 0 Then ;; If $Text is different than what's defined.. MsgBox(0, "", "Change!!") EndIf - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
JohnOne Posted March 20, 2011 Posted March 20, 2011 Its also worth noting that the source of a webpage can change without there being any visual changes. search your source code for 'salt' and if its present you might see what I mean, and you'll have to work aroung it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now