Smackdog Posted June 25, 2010 Share Posted June 25, 2010 I've been looking into using the IE.au3 features to do some web page automation. I've seen how to auto populate a lot of form fields including usernames and passwords. What I haven't been able to sort out is how to automate login to a website when the credentials are prompted from the browser. I've been using DebugBar to try to sort out what's what but that doesn't seem to help me for the browser prompt. Any ideas? Link to comment Share on other sites More sharing options...
jfcby Posted June 25, 2010 Share Posted June 25, 2010 Refer to this >>> post <<< for one possible solution.jfcby Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB **** Link to comment Share on other sites More sharing options...
KaFu Posted June 25, 2010 Share Posted June 25, 2010 (edited) #include <IE.au3> ; Internet Explorer does not support user names and passwords in Web site addresses (HTTP or HTTPS URLs) ; http://support.microsoft.com/kb/834489/EN-US/ OnAutoItExitRegister("_Del_IE_RegKey") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iexplore.exe", "REG_DWORD", 0) $oIE = _IECreate("http://USERNAME:PASSWORD@website.com/protected_dir/index.html", 0, 1, 1) _IENavigate ($oIE, "http://website.com/protected_dir/different_page.html") ; credentials only necessary for first call Func _Del_IE_RegKey() RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iexplore.exe") EndFunc ;==>_Del_IE_RegKey Edit: This is for BasicAuth (grey PopUp Box asking for credentials), if you're looking for a form related solution refer to jfcbys post above. Edited June 25, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
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