Jump to content
Sign in to follow this  
DChambers

Display website every week at same time

Recommended Posts

DChambers

I would like a script to turn to and watch a specific website every sunday at 3 PM, I thought it would be fairly simple but have bit off more than I can chew, can anyone help

Share this post


Link to post
Share on other sites
FireFox

Hi,

What do you mean by "watch" ?

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Danyfirex

hi, maybe something like this:

Local const $Saturday=7
Local const $3pm=17
while(sleep(1000))

If @WDAY=$Saturday and @HOUR=$3pm and @MIN=00 and @SEC=00 Then
    ShellExecute("Your web page")
endif

wend

saludos

Edited by Danyfirex

Share this post


Link to post
Share on other sites
kylomas

DChambers,

You might use this as a template to get you started...

Opt("TrayMenuMode", 1) ; show only the items defined below

Local $exit =   TrayCreateItem("Exit")
                TrayCreateItem("")
Local $about =  TrayCreateItem("About")
local $running = false

TraySetState()

While 1
    switch TrayGetMsg()
        Case $exit
            _exit()
        Case $about
            _about()
    EndSwitch

    if @wday = 1 then
        if @HOUR = 15 then
            if not $running then
                _Do_Web_watcher_Stuff()
                $running = not $running
                ConsoleWrite('Status changed to "Running"' & @LF)
            endif
        EndIf
    endif

    if $running and @hour <> 15 then
        $running= not $running
        ConsoleWrite('Status change to "Not Running"' & @LF)
    endif

wend

func _exit()
    ConsoleWrite('WEB Watcher Ending...' & @LF)
    Exit
EndFunc

func _about()
    ConsoleWrite('Something about this app...' & @LF)
    Exit
EndFunc

func _Do_Web_watcher_Stuff()

    ConsoleWrite('Doing your WEB Watcher thing...' & @LF)

endfunc

kylomas

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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  

×