BartW Posted December 9, 2011 Share Posted December 9, 2011 (edited) Hi All I have a weird problem with a script of mine. the script logs me automatically in on a website of my work. It worked fine until a week ago. I explort the reson why and fount the folowing if I uncheck ” use automatic configuration script” in the internet connection if works fine. If I check it again it starts the website and then the sript crashes Does anyone have a clue where is going worn I dont whant to use sent comands. #include-once #include <IE.au3> ;userdata $user = IniRead("Passwords.ini","Usd","User","") $password = IniRead("Passwords.ini","Usd","Password","") ;create IE in full screen local $oIE = _IECreate("http://***************************") WinSetState("[CLASS:IEFrame; INSTANCE:1]", "", @SW_MAXIMIZE) ; get pointers to the login form and username and password fields $o_form = _IEFormGetObjByName($oIE, "login") $o_login = _IEFormElementGetObjByName($o_form, "username") $o_password = _IEFormElementGetObjByName($o_form, "pin") ; Set field values and submit the form _IEFormElementSetValue($o_login, $user) _IEFormElementSetValue($o_password, $password) _IEFormSubmit($o_form) Edited December 9, 2011 by BartW 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