DChambers Posted August 28, 2013 Share Posted August 28, 2013 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 Link to comment Share on other sites More sharing options...
FireFox Posted August 28, 2013 Share Posted August 28, 2013 Hi, What do you mean by "watch" ? Br, FireFox. Link to comment Share on other sites More sharing options...
Danyfirex Posted August 28, 2013 Share Posted August 28, 2013 (edited) 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 August 28, 2013 by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
kylomas Posted August 29, 2013 Share Posted August 29, 2013 (edited) DChambers, You might use this as a template to get you started... expandcollapse popupOpt("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 August 29, 2013 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 More sharing options...
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