Sign in to follow this  
Followers 0
anyday

_ieloadwait

2 posts in this topic

anyone have any ideas why this code is not working? and a way to fix it? ive tried over and over.

Func _PolicySubmit()
    BlockInput (1)
    $oIE = _IECreate()
    WinSetState("about:blank - Microsoft Internet Explorer", "", @SW_MAXIMIZE)
    _IENavigate($oIE, "https://www.website.com")
    _IELoadWait($oIE)
    $title = WinGetTitle ("", "" )
    
    If $title = "The page cannot be displayed - Microsoft Internet Explorer" Then
    _GetCert()
    Else
        WinWaitActive( "Connect to infocenter", "&User name" )
        ControlSend ( "Connect to infocenter", "&User name", "Edit2", $FFLOGIN1 )
        ControlSend ( "Connect to infocenter", "&User name", "Edit3", $FFPASS1 )
        Send ("{Tab 2}")
        Send ("{Enter}")

What needs to happen is , the script needs to browse to www.website.com, and once it get's there it needs to either login to the pop up login window, or if the login window does not show up and there is a blank page saying access denied it needs to goto the _GetCert() Function. The first part works. if it gets the the page not displayed because there is no cert. installed it will goto the _GetCert() Func. The problem is that if the cert is there it will not login. I dont know if its because the website does not load all the way until you enter the login & pass or what? any ideas?

Share this post


Link to post
Share on other sites



anyone have any ideas why this code is not working? and a way to fix it? ive tried over and over.

Get rid of the _IELoadWait(), _IENavigate() does that already.

_IELoadWait($oIE)

Next try adding this to the top of your script:

Opt ( "WinSearchChildren" , 1 )

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