Jump to content

clicking security infromation dialog box in IE. help!


ofir
 Share

Recommended Posts

hi, since i'm new to autoit i tried to make a script that enter to a site. but the browser pops up a dialog box of security information. I tried the following code to simulate click on default button. but it does not work can someone help please?

$oIE = _IECreate ( [$s_Url = "SITEURL" [, $f_tryAttach = 0 [, $f_visible = 1 [,

$f_wait = 1 [, $f_takeFocus = -1]]]]] )

$oIEdia= _IEAttach ("Security Information", "DialogBox")

$oSubmit = _IEGetObjByName ( $oIEdia, "Yes" )

_IEAction ($oSubmit, "click")

Link to comment
Share on other sites

Try something like this:

AdlibEnable("WhackIEDialog")
$oIE = _IECreate($s_Url = "SITEURL" ,0,$f_visible,1,$f_takefocus)
$IE_Error = @error
AdlibDisable()

Func WhackIEDialog()
    
    If WinExists("Security Information") Then
        ControlClick("Security Information", "", "Button1")
    EndIf

EndFunc
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...