Joshjosh Posted August 24, 2006 Posted August 24, 2006 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?thankscode:While 1If 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
Kickassjoe Posted August 25, 2006 Posted August 25, 2006 you can press F5 to refresh the webpage dont no about the cache part! What goes around comes around... Payback's a bitch.
ame1011 Posted August 25, 2006 Posted August 25, 2006 (edited) I recommend looking into IE.au3 Edited August 25, 2006 by ame1011 [font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]
sshrum Posted August 25, 2006 Posted August 25, 2006 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?!?! 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 changedCaching 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'
Pieter Posted August 25, 2006 Posted August 25, 2006 WinActivate("Internet Explorer") Send("{F5}")Is this what you're looking for? iPod + Online calendars = iPodCALsync
BPBNA Posted August 25, 2006 Posted August 25, 2006 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.
Moderators big_daddy Posted August 25, 2006 Moderators Posted August 25, 2006 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
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