Jump to content

IE7 Clear Cache script


Recommended Posts

As a web developer i constantly find myself clearing my IE7 browser cache to see/fix changed script,content,etc. After utterly failing to find a way to have a shell script delete temporary internet files (while in use), I turned to autoit and it works perfectly!

I created the .au3 script file. The key part was to enable the "links" toolbar in IE7, and drag-n-drop my .au3 script to the IE7 links toolbar so I can click it from within IE7.

Here's the script, hope someone finds it useful:

;;;;;;;;;;;;;;;;;

Send("!O")

Send("{UP}")

Send("{ENTER}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{ENTER}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{ENTER}")

Send("{ENTER}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{ENTER}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{ENTER}")

Exit

;;;;;;;;;;;;;;;;;

Link to comment
Share on other sites

Hi Ronald,

instead of

Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")

you should use

Send("{TAB 4}")

Johannes

Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

Link to comment
Share on other sites

Send("{TAB 4}")

Johannes

nice, thank you Johannes. as you can tell, im new to this :) i also discovered using esc instead of tabs/enter to close dialogs works better. revised script:

;;;;;;;;;;;;;;;;;

Send("!O")

Send("{UP}")

Send("{ENTER}")

Send("{TAB 4}")

Send("{ENTER}")

Send("{TAB 8}")

Send("{ENTER 2}")

Send("{ESC 2}")

Exit

;;;;;;;;;;;;;;;;;

Link to comment
Share on other sites

hmm it looks like the results i get with my core2 quad are different than a slower machine. here is my latest revision to compensate:

;;;;;;;;;;;;;;;;;

Send("!O")

Send("{UP}")

Send("{ENTER}")

Send("{TAB 4}")

Send("{ENTER}")

WinWaitActive("Delete Browsing History", "", 2)

Send("+f")

WinWaitActive("Delete Files", "", 2)

Send("+y")

Send("{ESC 2}")

Exit

;;;;;;;;;;;;;;;;;

Link to comment
Share on other sites

Hopefully this will be the final revision, it seems to work best on all the machines I've tested it on:

;;;;;;;;;;;;;;;;;

Send("!O")

Send("{O}")

Send("{UP}")

Send("{ENTER}")

WinWaitActive("Internet Options", "", 2)

Send("{TAB 4}")

Send("{ENTER}")

WinWaitActive("Delete Browsing History", "", 2)

Send("+f")

WinWaitActive("Delete Files", "", 2)

Send("+y")

Send("{ESC 2}")

Exit

;;;;;;;;;;;;;;;;;

Link to comment
Share on other sites

  • 5 years later...

Hii everyone

THis THread is really Old

But i found this at Top on GOogle

so

I made a New Update script FOr Auto Fast (2 Sec) for Clearing Caches :D

Its working 100% for me

let me know in Pm If it doesn;t work

Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_WinWaitActivate("Blank Page - Windows Internet Explorer","")
ControlSend("Blank Page - Windows Internet Explorer","","","!to")
Sleep(100)
Send("o")
_WinWaitActivate("Internet Options","")
ControlClick("Internet Options", "", "Button5")
_WinWaitActivate("Delete Browsing History","")
ControlCommand("Delete Browsing History","", "Button1", "Check")
ControlClick("Delete Browsing History", "", "Button9")
sleep(100)
ControlClick("Internet Options", "", "Button13")

CHEERSZ!!!!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...