Jump to content
Sign in to follow this  

IE - Can't take IE message box as a window

Recommended Posts


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

Share this post

Link to post
Share on other sites

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


[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]

Share this post

Link to post
Share on other sites

I solved it

The problem is:

Think I have 2 lines of code:

; line 1


; 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


Happy that we got some new

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.