xwinterx Posted January 18, 2009 Share Posted January 18, 2009 (edited) Hi folks! I have been working on, not vigorously though, a pop-up blocker. I know there are a number of them out there, but there are always windows that get through. I have been toying with this idea for a while. It all started when my daughter clicked on a pop-up that looked like a kids game and whammo! Spyware all over the place. So after a hardrive wipe and re-installation, I decided to work on this project:Name: WinKillVersion: 0.1.4Updated: 1-17-09This little program sits in the windows tray. It has the following tray menu options:Settings: Does nothing really right now, havent implemented anything, but you can clear the log from the menu on the settings window.Learning Mode: Default is ON (or checked). This puts WinKill into "learning mode".Pause WinKill: Pauses/Unpauses WinKill.About: Does nothing but will show a little pop-up about window.Exit: Terminates WinKillLearning ModeWhen in Learning Mode, WinKill will detect ANY new windows and alert you. It will ask you if you want it added to your safelist. If you choose "yes", WinKill will allow the window to remain open, and subsequently re-opened in the future by adding it to a safelist text file. If you choose "no", then it will close the window. When you turn Learning Mode off, it will close any "visible" windows that pop-up.Bug: If a window title changes and you are NOT in learning mode, it will kill the window. Example, if you are working in ScITE and make a change to an au3 script, ScITE puts a little asterick (*) in the window so you know a change has been made but not saved. This will trigger WinKill.Bug: Detects tooltips as windows and triggers WinKill (if non-"tooltips_class32" class tooltips)Performance: sluggish at timesSorry for the sloppy code, I will clean it up a bit and take out stuff that I was going to try implementing but never got around to it. The method I chose was to just get a list of window titles (not handles or classes) and compare the current visible active windows to the safelist. If the title is not found, it triggers WinKill. It can also be a bit sluggish to. I have not worked to streamline it, I am sure such can be done. But for now, I can work with the hodge-podge code and slowly tweak it down.Flame on folks! Thanks!!icon_default.icoWK_0.1.4.au3 Edited January 18, 2009 by xwinterx Link to comment Share on other sites More sharing options...
iHonda Posted January 18, 2009 Share Posted January 18, 2009 very nice idea ^^ keep it up im sure you can get this going quite well. maybe just an idea.. have the user select the browsers they have on their computer because each browser has something specific to it in its title bar for mozilla its: "Page Title" - Mozilla Firefox and since most popups will come from web pages it would have that little bit on the end so that you can get around it closing everything A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
FireFox Posted January 18, 2009 Share Posted January 18, 2009 Your script has same name as a script of my project... Can you change a little it ? Cheers, FireFox. Link to comment Share on other sites More sharing options...
gseller Posted January 18, 2009 Share Posted January 18, 2009 SWEET!!! Very nice script! Thank you for sharing it... I really like the learning mode. 4 stars from me! Link to comment Share on other sites More sharing options...
xwinterx Posted January 18, 2009 Author Share Posted January 18, 2009 what I am planning on doing and now partially have implemented is to allow a user to add a window class to the exceptions list. The problem I was running into is that a program I am running uses non-win32 classes, or something, so I kept getting the tooltips on that one program tripping WK. So I added their generic class to a little function. Then added CHM window classes and so on that way it wouldn't keep wanting to close the windows for my SciTE and Help file. lol! as far as web pages are concerned, I was thinking more of checking say the first 30 or so characters of the window title, since pop-up ads usually come from something like "www.adserver.com/ad.php?123123131231231231231billion!" or maybe domains or something. I'll work it out and keep posting it. This has actually been my real first workable project after I stopped working on my installer and then after the "official" obfuscator defunct the one I posted here. lol! Link to comment Share on other sites More sharing options...
gseller Posted January 18, 2009 Share Posted January 18, 2009 Good idea on the generic class names. On the webpages too. If looking at the titles it is pretty much pointless from there for most users it defaults to the browser name of who provided it. 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