Sign in to follow this  
Followers 0
randominetdude

Internet Explorer Options Automation

13 posts in this topic

So here is the situation:

     At my work I need to set multiple computers to the checkbox "Delete browsing history on exit" while searching for a way to quickly launch IE and move to tools to do this, I found that IE does not like to receive the ALT key.

SO I guess my question is: Can someone point me in a direction to get IE to receive the ALT key?  I'm sure it is really simple, but I haven't been able to find much on the forums about it.

 

Oh and Hello! I'm happy to finally join! :sweating:

Share this post


Link to post
Share on other sites



How are you sending the ALT key? Using Send?


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

Well I have tried both WInactive, then send and ControlSend however it seems to be finicky. I have gotten it to work once or twice but it did not seem consistent enough.

#include <IE.au3>
_IECreate("www.urbanelectricco.com")
WinWait("The Urban Electric Company - Internet Explorer")
Sleep(500)
ControlSend("The Urban Electric Company - Internet Explorer","","","!")

Share this post


Link to post
Share on other sites

If you are doing this for multiple computers, why not do it via GPO? Then you don't have to run it as new machines come on the network.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I don't think they are set up for that? I am not any type of administrator for our network, I just happen to be the guy that knows the most about windows 8, and can occasionally fix the problem. As far as I know all of the 30+ computer function just like a standalone computer at home.

Edited by randominetdude

Share this post


Link to post
Share on other sites

Are all these computers on a domain? This can easily be checked in advanced system settings by right clicking and going to preferences on My Computer.


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

Most likely no -- they literally plugged the computers in and mounted them to tables at that was all that was done to them haha

I helped clean up the desktops and tech people how to use windows 8, but as far as I saw they were plugged in, password put in for wifi and then done.

Share this post


Link to post
Share on other sites

Have you tried using _IEAction()?


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

I saw that, but wasn't sure how to use it to get to my final goal.

Maybe if I can use it in conjunction with send I could achieve something -- I shall try it

Any other suggestions in the meantime?

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

This seems to work on Win 7, IE11:

Switch @OSArch 
    Case "X86"
        RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Privacy", "ClearBrowsingHistoryOnExit", "REG_DWORD", "1")
    Case "X64"
        RegWrite("HKEY_CURRENT_USER64\Software\Microsoft\Internet Explorer\Privacy", "ClearBrowsingHistoryOnExit", "REG_DWORD", "1")
EndSwitch

May not work for other versions of IE, try to google registry key. For IE 8 it seems to be HKEY_LOCAL_MACHINESoftwarePoliciesMicrosoftInternet ExplorerPrivacy : ClearBrowsingHistoryOnExit

Registry locations of other settings: http://support2.microsoft.com/kb/182569

For example, enabling programmatic clipboard access:

Switch @OSArch ;Enable clipboard
    Case "X86"
        RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1407", "REG_DWORD", "0")
    Case "X64"
        RegWrite("HKEY_CURRENT_USER64\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1407", "REG_DWORD", "0")
EndSwitch
Edited by StandardUser

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

here is something I have used in the past.

ShellExecute("C:\Windows\System32\inetcpl.cpl")

sleep(1000)


Send("{ALTDOWN}d{ALTUP}")

sleep(2000)


;sets the preserve favorites website data

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:1]", 
"check")


;sets the temporary internet files

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:2]", 
"check")


;sets the cookies

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:3]", 
"check")


;sets the history

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:4]", 
"check")


;sets the download history

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:5]", 
"check")


;sets the form data

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:6]", 
"check")


;sets the passwords

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:7]", 
"check")


;;sets the activeX filtering and tracking protection data

ControlCommand("Delete Browsing History", "", "[CLASS:Button; INSTANCE:8]", 
"check")


sleep(2000)


Send("{ALTDOWN}d{ALTUP}{ESC}")

Send("{ESC}")
Edited by pcjunki

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

@pcjunki thanks! this is exactly what I was looking for, I knew there was a way to get to that menu right away but had no idea how to get to it from autoit!

Thank you again!

Edited by randominetdude

Share this post


Link to post
Share on other sites

@pcjunki thanks! this is exactly what I was looking for, I knew there was a way to get to that menu right away but had no idea how to get to it from autoit!

Thank you again!

 

If you mark his answer on the bottom right of his post as best answer it will make the topic a little easier to navigate for anyone else trying to find a solution to the same problem. ;)


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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