matakana Posted June 25, 2010 Share Posted June 25, 2010 Hi guys Could some please write some code so that a given web page will open at a given time of day - say midday - and every day. I don't have a clue where to begin, otherwise I would have a go myself. thanks a bunch for any help! Link to comment Share on other sites More sharing options...
JohnOne Posted June 25, 2010 Share Posted June 25, 2010 (edited) hmmm something tells me that you arnt finished when you have this code on a plate for you. So will you just come back looking for another peice of code? The best way to start is by doing, so here is what you will need to read in the helpfile to acieve your goal (its not much) @HOUR ShellExecute() While WEnd Sleep() edit: you can click on them if you didnt know. Edited June 25, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
matakana Posted June 25, 2010 Author Share Posted June 25, 2010 hmmm something tells me that you arnt finished when you have this code on a plate for you. So will you just come back looking for another peice of code? The best way to start is by doing, so here is what you will need to read in the helpfile to acieve your goal (its not much) @HOUR ShellExecute() While WEnd Sleep() edit: you can click on them if you didnt know. Link to comment Share on other sites More sharing options...
matakana Posted June 25, 2010 Author Share Posted June 25, 2010 (edited) Okay here is my attempt - can anyone please make it work? thanks #include<IE.au3> $sUrl = "http://www.google.co.nz/" $oIE = _IECreate($sUrl, 0, 1, 0, 1) $sReqTime = "12:00:00" ;mid day If and WinExists($$sUrl) Then Exit ; Check if google is open AutoItWinSetTitle($sUrl) While 1 If not WinExists $oIE and $sReqTime Then $oIE = _IECreate($URL);open url Sleep(800) WEnd _IEFormSubmit($oForm) Edited June 25, 2010 by matakana Link to comment Share on other sites More sharing options...
JohnOne Posted June 25, 2010 Share Posted June 25, 2010 (edited) One example Global $sUrl = "http://www.google.co.nz/" Global $oIE While 1 If @HOUR = 12 And @MIN = 00 Then _start() EndIf Sleep(1000 * 58) WEnd Func _start() $oIE = _IECreate($sUrl, 0, 1, 0, 1) While 1 If WinExists("Google - Windows Internet Explorer") Then WinWaitActive("Google - Windows Internet Explorer") ;wait to be active Beep(800,200) ;do stuff ExitLoop EndIf Sleep(100) WEnd EndFunc Edited June 25, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
matakana Posted June 26, 2010 Author Share Posted June 26, 2010 Thanks JohnOne!!! that works like a dream. It is slightly less scary, now I understand a few more basic things now. Now I am onto phase 2..... cheers matakana 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