Jump to content

how to detect IE Popup dialog?


Recommended Posts

hello

i've some problem with IE pop up. (pict below)

how to detect IE popup like that?? 

im using this code but still not work:

#include <MsgBoxConstants.au3>
#include <IE.au3>
while 1

sleep(3000)
CekPopup()

WEnd

Func CekPopup()
   if _IEAttach("Windows Internet Explorer") = True Then
      local $awin= WinActivate("Windows Internet Explorer")
      sleep(2000)
      send("{ENTER}");;;yes button
   Else
   ConsoleWrite("Pop Up FREEEEEEE...!!! ")
   EndIf
EndFunc   ;==>Example

 

bbbbb.png

Link to comment
Share on other sites

  • Moderators

Look at IUIAutomation in the Examples forum. There are some examples dealing with browser pop-ups.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...