Sign in to follow this  
Followers 0
kasarah

Internet Explorer - Security Warning stopping script?

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Look 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0