KevinDC Posted July 30, 2011 Share Posted July 30, 2011 I am trying to login to the website in the code below. It takes me to the website, but for the life of me I can't get it to press the "ENTER" button or send Enter. I have removed my login/pw for obvious reasons, but that isn't until you hit OK on the first screen, which I cannot get it to do. Someone else try to go to this site and get it to send Enter or hit the OK button. I haven't succeeded. Please let me so your code when you achieve this. I'm not impressed with AutoIt so far. this is my first script. Also, it seems to leave the process hanging in the windows task manager. #include <IE.au3> $user = "" $pass = "" $url = "https://citrixalt.gfebs-erp.army.mil/Citrix/XenApp/auth/preLoginMessage.aspx" $oIE = _IECreate ($url) _IELoadWait ($oIE) Send ("{Enter}") ;$o_form = _IEFormGetObjByName ($oIE, "CitrixForm") ;_IEFormSubmit ($o_form) ;$oSubmit = _IEGetObjByName ($oIE, "yes") ;_IEAction ($oSubmit, "click") ;_IELoadWait ($oIE) Link to comment Share on other sites More sharing options...
PeterPE Posted July 30, 2011 Share Posted July 30, 2011 Did you try IE9? There is currently a bug in autoit so that quite a few IE9 DOM methods don't work (but it work in IE7 or IE8 or IE9 compatibility mode). We will have to wait for the next beta version to fix this. But don't hold your breath, this bug has been known for quite while now. Seems to be difficult to fix apparently. 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