kasarah Posted September 26, 2008 Share Posted September 26, 2008 Hey, I have a really odd issue. The script fails to continue (even though the icon indicates the script is still running in the system tray), after the _IEAction listed below. The click actually happens pops up Internet Explorer - Security Warning, but script does not execute the next line. Is this a windows priority setting for this window? Is there a work-around? This is XP SP3 (not a vista issue). $oDiv_user = _IEGetObjById($oIE, "username") ;this is ID not by tab or index $oDiv_pass = _IEGetObjById($oIE, "password") ;this is ID not by tab or index $oDiv_Auth = _IEGetObjById($oIE, "AuthType") ; this is ID not by tab or index WriteToLog("debug", "Login window found, entering ** $AuthType **= " & $oDiv_Auth) _IEFormElementSetValue($oDiv_user, $username) ;set the value by ID _IEFormElementSetValue($oDiv_pass, $password) ;set the value by ID _IEFormElementSetValue($oDiv_Auth, $AuthType) ;set the value by ID $oDiv_Login = _IEGetObjById($oIE, "cuesLoginSubmitButton") ;id WriteToLog("debug", "Right before click") _IEAction($oDiv_Login, "click") ; index and action click WriteToLog("debug", "After Click, moving out of Login Window") Here is my log output: 2008-09-26 10:56:10 : Info: Login window found, entering username= testNACagent password= testNACagent AuthType= Local entering DoCleanAccessAgentLogin 2008-09-26 10:56:10 : debug: Login window found, entering ** $AuthType **= 0 2008-09-26 10:56:10 : debug: Right before click then the code never continues! I never see the "After click" message. Why would IEAction never let the code continue? Any thoughts would be greatly greatly appreciated! Thanks, b Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 26, 2008 Share Posted September 26, 2008 Hey,I have a really odd issue. The script fails to continue (even though the icon indicates the script is still running in the system tray), after the _IEAction listed below. The click actually happens pops up Internet Explorer - Security Warning, but script does not execute the next line. Is this a windows priority setting for this window? Is there a work-around? This is XP SP3 (not a vista issue). $oDiv_user = _IEGetObjById($oIE, "username") ;this is ID not by tab or index $oDiv_pass = _IEGetObjById($oIE, "password") ;this is ID not by tab or index $oDiv_Auth = _IEGetObjById($oIE, "AuthType") ; this is ID not by tab or index WriteToLog("debug", "Login window found, entering ** $AuthType **= " & $oDiv_Auth) _IEFormElementSetValue($oDiv_user, $username) ;set the value by ID _IEFormElementSetValue($oDiv_pass, $password) ;set the value by ID _IEFormElementSetValue($oDiv_Auth, $AuthType) ;set the value by ID $oDiv_Login = _IEGetObjById($oIE, "cuesLoginSubmitButton") ;id WriteToLog("debug", "Right before click") _IEAction($oDiv_Login, "click") ; index and action click WriteToLog("debug", "After Click, moving out of Login Window")Here is my log output:2008-09-26 10:56:10 : Info: Login window found, entering username= testNACagentpassword= testNACagent AuthType= Local entering DoCleanAccessAgentLogin2008-09-26 10:56:10 : debug: Login window found, entering ** $AuthType **= 02008-09-26 10:56:10 : debug: Right before clickthen the code never continues! I never see the "After click" message. Why would IEAction never let the code continue? Any thoughts would be greatly greatly appreciated!Thanks,bLook in the help file at _IEAction(), specifically at Example 2. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
kasarah Posted September 30, 2008 Author Share Posted September 30, 2008 Look in the help file at _IEAction(), specifically at Example 2. Thanks! sorry for a RTFM request. It looks like that will work. I'll try it!B 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