Jump to content

Display website every week at same time


Recommended Posts

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

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

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...