wchan2122 Posted March 15, 2010 Posted March 15, 2010 I want to disable a “Security Alert” window with below script when I login SSL Web Site However, it suspends at the script line _IEAttach("Microsoft") and cannot execute the script after. $oIE = _IEAttach("Microsoft") WinWait("Security Alert", "") ControlCommand("Security Alert", "", "[CLASS:Button; INSTANCE:1]", "Check", "")
dani Posted March 15, 2010 Posted March 15, 2010 (edited) I haven't used IE.au3 myself but as I read in it's docs, the first parameter of _IEAttach is a substring of the browser title. In other words, that would be '<pagename> - Windows Internet Explorer'. Therefore, it probably does not find an Internet Explorer instance with 'Microsoft' as title. Could that be the case? Or does your SSL web site have 'Microsoft' as title? -- edit I now realize the name was changed recently. At least in IE6 it always was 'Microsoft Internet Explorer'. I think they started 'Windows Internet Explorer' with IE7, but I'm not 100% sure. Which version of IE do you use ? Edited March 15, 2010 by dani
wchan2122 Posted March 16, 2010 Author Posted March 16, 2010 I haven't used IE.au3 myself but as I read in it's docs, the first parameter of _IEAttach is a substring of the browser title. In other words, that would be '<pagename> - Windows Internet Explorer'. Therefore, it probably does not find an Internet Explorer instance with 'Microsoft' as title. Could that be the case? Or does your SSL web site have 'Microsoft' as title? -- edit I now realize the name was changed recently. At least in IE6 it always was 'Microsoft Internet Explorer'. I think they started 'Windows Internet Explorer' with IE7, but I'm not 100% sure. Which version of IE do you use ? I change the script as below, but the problem still exists $oIE = _IECreate( "https://10.20.225.36/CACSproHK/GL_Logon.jsp") WinWait("Security Alert", "") ControlCommand("Security Alert", "", "[CLASS:Button; INSTANCE:1]", "Check", "")
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