View previous topic :: View next topic |
Author |
Message |
bknight2602 Grandmaster Cheater
Reputation: 0
Joined: 08 Oct 2012 Posts: 586
|
Posted: Sat Jan 30, 2016 11:11 am Post subject: Auto refresh web page |
|
|
I surfed the web for some code to auto refresh a web page and found this bit of code that I have edited for my needs.
Code: | On Error Resume Next
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Navigate "https://WebPageAddress"
.Visible = True
End With
counter = 1
Do Until counter>= 181
WScript.Sleep 180000 '3 min
IE.Refresh()
counter = counter + 1
Loop |
This was designed to work for 9 hours, but ends after 6 hours. What I would like to do is to end the loop at 1500(my Time), but I don't know the syntax to access and/or use the pc time.
Any suggestions from anyone?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Jan 30, 2016 11:49 am Post subject: |
|
|
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Jan 30, 2016 12:04 pm Post subject: |
|
|
What is this for?
|
|
Back to top |
|
 |
bknight2602 Grandmaster Cheater
Reputation: 0
Joined: 08 Oct 2012 Posts: 586
|
Posted: Sat Jan 30, 2016 12:46 pm Post subject: |
|
|
To refresh a web page automatically without pressing the F5 key continently.
Zanzer, trying that currently, thanks.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Jan 30, 2016 12:55 pm Post subject: |
|
|
bknight2602 wrote: | ++METHOS wrote: | What is this for? | To refresh a web page automatically without pressing the F5 key continently. | -Obviously.
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Jan 30, 2016 1:23 pm Post subject: |
|
|
Sounds like some DOS attack.
|
|
Back to top |
|
 |
bknight2602 Grandmaster Cheater
Reputation: 0
Joined: 08 Oct 2012 Posts: 586
|
Posted: Sat Jan 30, 2016 2:03 pm Post subject: |
|
|
++METHOS wrote: | bknight2602 wrote: | ++METHOS wrote: | What is this for? | To refresh a web page automatically without pressing the F5 key continently. | -Obviously.  |
If you knew the answer why ask?
Zanzer wrote: | Sounds like some DOS attack.  |
As I answered earlier, nothing mysterious or ominous.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Jan 30, 2016 2:47 pm Post subject: |
|
|
Most modern browsers have plugins for things like this vs. having to code your own thing. It would be built into the browser requiring no extra tools running.
_________________
- Retired. |
|
Back to top |
|
 |
bknight2602 Grandmaster Cheater
Reputation: 0
Joined: 08 Oct 2012 Posts: 586
|
Posted: Sat Jan 30, 2016 3:40 pm Post subject: |
|
|
atom0s wrote: | Most modern browsers have plugins for things like this vs. having to code your own thing. It would be built into the browser requiring no extra tools running. |
Using IE, what must be adjusted to do this?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Jan 30, 2016 4:24 pm Post subject: |
|
|
bknight2602 wrote: | If you knew the answer why ask?  | -Really fantastic. Anyway, I'm quite certain that it's for something really stupid at this point.
Zanzer wrote: | Sounds like some DOS attack.  | -LOL.
|
|
Back to top |
|
 |
bknight2602 Grandmaster Cheater
Reputation: 0
Joined: 08 Oct 2012 Posts: 586
|
Posted: Sat Jan 30, 2016 4:45 pm Post subject: |
|
|
++METHOS wrote: | bknight2602 wrote: | If you knew the answer why ask?  | -Really fantastic. Anyway, I'm quite certain that it's for something really stupid at this point. |
Your analytic thoughts are incorrect, very important to me, perhaps not you.
|
|
Back to top |
|
 |
|