ofir Posted October 17, 2006 Share Posted October 17, 2006 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 More sharing options...
VeeDub Posted October 18, 2006 Share Posted October 18, 2006 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 More sharing options...
Moderators big_daddy Posted October 18, 2006 Moderators Share Posted October 18, 2006 You can find a nice example of this in my Snippet Database.WhackSecurityAlert 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