Guy Argo Posted December 4, 2006 Posted December 4, 2006 I'd like a simple script for deleting my IE cookies. It should be straight forward: open IE ->&Tools->Internet &Options->Delete Cook&ies click on "OK" exit Here's my attempt: Run( "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.msn.com" ) WinWaitActive( "MSN.com" ) ; -> &Tools -> Internet &Options -> Delete Cook&ies Send( "!t" ) Send( "!o" ) Send( "!i" ) ; click on the yes button with Control ID 1 ControlClick( "Delete Cookies", "Delete all cookies", 1 ) ; -> &File -> &Close Send( "!f" ) Send( "!c" ) All I get the windows "doh" sound that you get when you do something invalid. Any suggestions?
Glyph Posted December 4, 2006 Posted December 4, 2006 (edited) Delete the cookies on your hard drive directly! Filedelete (@homedrive & "Documents and settings\" & @username &"\cookies\" Not sure if it'll work but its worth a try! Edited December 4, 2006 by backstabbed tolle indicium
Guy Argo Posted December 4, 2006 Author Posted December 4, 2006 Delete the cookies on your hard drive directly! Filedelete (@homedrive & "Documents and settings\" & @username &"\cookies\ Not sure if it'll work but its worth a try! It wouldn't let me do that. Always claims the files are in use by another process. That why I'm trying to do it via the IE menus...
Glyph Posted December 4, 2006 Posted December 4, 2006 Well... i guess you could click it! lol, what version of IE you on? IE6 or IE7? tolle indicium
bigassmuffin Posted December 4, 2006 Posted December 4, 2006 (edited) It wouldn't let me do that. Always claims the files are in use by another process. That why I'm trying to do it via the IE menus... in orderr for it to work hit ctrl+alt+delete, and end the process of any explorer.exe or iexplorer.exe in processes tab, that being to much work, jsut use mousemove and mouse click to the given coords: MouseClick("left", x, y) ;coords to click on start menu MouseClick("left", x, y) ;coords to click on internet explorer sleep(7500) ; waits for internet explorer to laod MouseClick("left", x, y) ;tools tools menu MouseClick("left", x, y) ; clicks on internet options Sleep(1000) ;Wait for window to load MouseClick("left", x, y) ;clicks delete cookies Use this code to find the coords: Do $pos = MouseGetPos() tooltip($pos[0] & "." & $pos[1], 0, 0) Until $pos[0] = 0 and $pos[1] = 0 (bring mouse to top left (0, 0) of screen to stop/end script Edited December 4, 2006 by bigassmuffin
Moderators big_daddy Posted December 4, 2006 Moderators Posted December 4, 2006 You may be able to talk one of the Dll Guru's into converting this for you. I've been attempting to, but so far have failed horribly!How To Clear Cache When Your Application Hosts a WebBrowser Control
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