Smackdog 0 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? Share this post Link to post Share on other sites
jfcby 3 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 **** Share this post Link to post Share on other sites
KaFu 296 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-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) 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 (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites