Sign in to follow this  
Followers 0
Joshjosh

Refresh a webpage?

8 posts in this topic

I have a script that runs a webpage and automatically opens it again when closed (and locks the mouse top right). What i need to do is have it refresh the page every x seconds/minutes but load from cache if the page hasn't changed. Any ideas?

thanks

code:

While 1

If Not ProcessExists("iexplore.exe") Then Run(@ProgramFilesDir &"\Internet Explorer\iexplore.exe -k http://www.xyz123.com.au/channel_1.htm")

MouseMove(@DesktopWidth + 100, 0, 0)

WEnd

Share this post


Link to post
Share on other sites



you can press F5 to refresh the webpage :P dont no about the cache part!


What goes around comes around... Payback's a bitch.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I recommend looking into IE.au3

Edited by ame1011

[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]

Share this post


Link to post
Share on other sites

I think I'm reading your post right (if not, my bad)...

Correct me if I'm wrong but the only way to know if a page has changed is to reload the page from the host site, right?!?! :P

You still need to reload the page every time and compare it to the last time you looked to determine if anything changed.

The only thing this line of coding will allow you to do (IMHO) is:

1. Launch IE to open the page when it changes, or

2. Generate a note/dialog/email that the page has changed

Caching the actual web page nowadays is pointless; too much changes. Back 10 years ago when bandwidth was governed by modems and pages never really changed, yes...THEN caching was useful but it meant that if the page updated, you didn't get to see the updates cuz you were pulling the older version of the page from the cache.

Just my 2 centavos


Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Share this post


Link to post
Share on other sites

Correct me if I'm wrong but I'm pretty sure Ctrl+F5 will do a complete refresh of the web page and ignore the cache.

Share this post


Link to post
Share on other sites

_IEAction ($oIE,"refresh")

Share this post


Link to post
Share on other sites

This will reload the current page from the server.

#include <IE.au3>

_IEErrorHandlerRegister()

$oIE = _IECreate("www.google.com")
$oIE.document.location.reload(True); True reloads from server

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  
Followers 0