Sign in to follow this  
Followers 0
Guy Argo

Deleting Cookies in Internet Explorer

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by backstabbed

tolle indicium

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

Well... i guess you could click it!

lol, what version of IE you on?

IE6 or IE7?


tolle indicium

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by bigassmuffin

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