Sign in to follow this  
Followers 0
supadodger

trying to monitor a webpage for changes...

3 posts in this topic

#1 ·  Posted (edited)

fixed, sorry

here is working code...

#include <Inet.au3>
Opt("TrayIconDebug", 1)
SoundPlay("C:\Windows\winsxs\x86_microsoft-windows-s..soundthemes-savanna_31bf3856ad364e35_6.1.7600.16385_none_28e34d1952a3a85c\Windows Ding.wav")
$Data = _INetGetSource("http://cincinnati.craigslist.org/sys/")
While 1
    $Data2 = _INetGetSource("http://cincinnati.craigslist.org/sys/")
    If $Data2 <> $Data Then
        $Data = _INetGetSource("http://cincinnati.craigslist.org/sys/")
        ShellExecute("http://cincinnati.craigslist.org/sys/")
    EndIf
    For $x = 1 To 30
        TrayTip("Next Check In", $x & " of 30 Seconds", 1000)
        Sleep(1000)
    Next
WEnd
Edited by supadodger

Share this post


Link to post
Share on other sites



Here is a script I wrote that I use to monitor a webpage and let me know if a certain line of text doesn't exist anymore. This isn't exactly what you want I think, but it may help you, if you do need some help..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

A bit simplified ! Posted Image

#include <Inet.au3>
Global $DataOld, $x, $_Url='http://cincinnati.craigslist.org/sys/'

While 1
    $Data = _INetGetSource ( $_Url )
    If $Data <> $DataOld And $x > 1 Then ShellExecute ( $_Url )
    For $x = 1 To 30
        TrayTip ( "Next Check In", 31-$x & " Seconds", 1000 )
        Sleep ( 1000 )
    Next
    $DataOld=$Data
WEnd

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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