Jump to content

PopUp Blocker Code


Recommended Posts

Hello,

Does somebody know a code for autoit to block popups in Internet Explorer?

There is a basic one Here I do not know if it works I just searched the forums.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

I know your looking for an Auto It solution, but why not use use SP2? Or if your getting a bunch of pop-ups, why not try and fix the issue if there is one??

If you have issues with pop-ups, google. "HijackThis.exe"

I know about this programs, and I use them, but I want to create a popupblocker by myself. So that I can learn more about AutoIt.

Link to comment
Share on other sites

This might get you started:

; Loop indefinitely
While 1
    If WinExists('Some popup window') Then WinClose('Some popup window')
    If WinExists('Another popup window') Then WinClose('Another popup window')
    If WinExists('Some spam window') Then WinClose('Some spam window')
    ···
   ; Brief delay (1/4 sec.) to avoid excessive CPU usage
    Sleep(250)
WEnd
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...