randominetdude Posted October 7, 2014 Posted October 7, 2014 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!
MikahS Posted October 7, 2014 Posted October 7, 2014 How are you sending the ALT key? Using Send? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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
randominetdude Posted October 7, 2014 Author Posted October 7, 2014 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","","","!")
Moderators JLogan3o13 Posted October 7, 2014 Moderators Posted October 7, 2014 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. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
randominetdude Posted October 7, 2014 Author Posted October 7, 2014 (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 October 7, 2014 by randominetdude
MikahS Posted October 7, 2014 Posted October 7, 2014 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 ~ getENVvarsMy 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
randominetdude Posted October 7, 2014 Author Posted October 7, 2014 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.
MikahS Posted October 7, 2014 Posted October 7, 2014 Have you tried using _IEAction()? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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
randominetdude Posted October 7, 2014 Author Posted October 7, 2014 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?
StandardUser Posted October 7, 2014 Posted October 7, 2014 (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 October 7, 2014 by StandardUser
Solution pcjunki Posted October 7, 2014 Solution Posted October 7, 2014 (edited) here is something I have used in the past. expandcollapse popupShellExecute("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 October 7, 2014 by pcjunki
randominetdude Posted October 8, 2014 Author Posted October 8, 2014 (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 October 8, 2014 by randominetdude
MikahS Posted October 8, 2014 Posted October 8, 2014 @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 ~ getENVvarsMy 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
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