jnj Posted July 8, 2010 Share Posted July 8, 2010 Hi, I posted it before and I thought I had it sorted but apparently I don't. Here's the scenario. I'm just creating a simple automation for email login. Here's the code: #include <IE.au3> $user = "username" $pass = "password" $oIE = _IECreate("https://login.yahoo.com/config/login_verify2?.intl=uk&.src=ym") WinSetState(_IEPropertyGet($oIE, "hwnd"), "", @SW_MAXIMIZE) $uForm = _IEFormGetObjByName ($oIE, "login_form") $uText = _IEFormElementGetObjByName ($uForm, "login") _IEFormElementSetValue ($uText,$user); $pText = _IEFormElementGetObjByName ($uForm, "passwd") _IEFormElementSetValue ($pText,$pass) _IEFormSubmit ($uForm) Simple enough I guess but everytime I run it a blank instance of IE opens just before the desired page and the script for some reason won't be able to login. I was playing around with IE (mine is version 7 by the way) and after change few things from Security options it worked like a charm, for while, cuz on the next day I couldn't make it work again. The twist is for that blank instance the process running is "explorer.exe" and not "iexplore.exe". Tried in a couple of different PC's but the issue repeats. Can someone please give us a hand to sort it out? Many thanks in advance. 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