Jump to content
Sign in to follow this  

clicking security infromation dialog box in IE. help!

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")

Share this post

Link to post
Share on other sites

Try something like this:

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

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


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.