Jump to content

trying to monitor a webpage for changes...


Recommended Posts

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...