LubeLee Posted January 28, 2009 Share Posted January 28, 2009 I navigate to an URL, IE shows a small message box: "Title: Security Information , Text: This connection is insecure. Are you sure? ..." But I can't close this message box I used: WinWaitActive("Security Information", "") WinClose("Security Information", "") But it didn't work This looks mysterious to me. Please help Link to comment Share on other sites More sharing options...
nfaustin Posted January 28, 2009 Share Posted January 28, 2009 Try this: If this message box return 1 then winxx() function can read it Msgbox(0,"check window",WinExists("Security Information", "")) On your code try this: if WinExists("Security Information", "") Then WinActivate("Security Information", "") WinClose("Security Information", "") EndIf [font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font] Link to comment Share on other sites More sharing options...
LubeLee Posted January 28, 2009 Author Share Posted January 28, 2009 I solved it The problem is: Think I have 2 lines of code: ; line 1 _IENavigate(...) ; line 2 WinWaitActive("Security Information", "") Function _IENavigate have 2 options, returns immediately or returns after page load is complete The message box appeared in the middle of page load and I used the default option of _IENavigate(...) which is returns after page load is complete So although the message box appeared but the code of line 2 wasn't executed until I manually close it which makes condition for page load to complete and _IENavigate(...) returns Thanks Happy that we got some new 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