I made this program real quick because of all the people who complain about the Sprinks popups. Sure, if you switch to the ugly yellow vbsquare style, they go away, but it's... well... ugly.
I only consider them mildly annoying, but I'm happy to get rid of them, anyway.
Attached is a very small program that runs silently in the background and kills all Sprinks popups on sight. To start it, just run it. Nothing will seem to happen. That's because you're not even supposed to be able to tell it's running unless you press Ctrl+Alt+Del. To close it, just run it again and a message box will pop up asking if you want to close it. Just click Yes and it'll close.
The program was originally written in VB, but I decided to rewrite it in C++. Now it takes less CPU time and doesn't require the VB runtimes.
These are the browsers it should work with:
Internet Explorer (only tested with IE6, tho)
Netscape (tested with version 4.7 and 6, but should work on the other versions too)
K-Meleon (I have the browser on my computer, so I figured...why not)
It does not work with Opera because I don't find the popups annoying at all on that browser. If you want it to work with other browsers, including Opera, let me know.
The single solitary purpose of this app is to get rid of the sprinks popups. I hope you like it
The latest version is 1.03 now. Version 1.0 was the original VB version. Version 1.01 was the first C++ version. Version 1.02 is the second C++ version. Version 1.03 takes out some unnecessary code. The source for it is posted in another post in this thread.
Filburt, I would use that icon of yours, but I already made one..
I rewrote SprinksKiller in C++. Now it has no dependancies and it uses up less CPU time. You still use it the same way. Run it once and it runs silently in the background. Run it again and it closes itself and pops up a messagebox telling you it was closed.
I think i had a problem related to your program, sometimes this huge blue screen would pop up (not a BSOD ) that I would have to click and hit Alt + F4 to close...now i'm going to see if your C++ version does this.
Tygur do you think it can be possible to have some source code of your program just to see how you did ? If you do not want to give the C++ improved version maybe just the poor vb one ?
Originally posted by DaoK Tygur do you think it can be possible to have some source code of your program just to see how you did ? If you do not want to give the C++ improved version maybe just the poor vb one ?
I left your post unanswered for so long because I couldn't decide.
I think I'm gonna update the VB version so both are doing the same thing, then post the source for both. It'll be great for comparing C++ with VB. I'm not sure when I'll actually get around to doing this, tho.
TYgur, great app - been using it for the last week & it's been fantastic.
Not sure when this was first posted, but did you ever get round to posting the source code ?
Last edited by alex_read; Jan 11th, 2002 at 07:04 AM.
Please rate this post if it was useful for you!
Please try to search before creating a new post,
Please format code using [ code ][ /code ], and
Post sample code, error details & problem details
Originally posted by alex_read TYgur, great app - been using it for the last eek & it's been fantastic.
Not sure when this was first posted, but did you ever get round to posting the source code ?
I only decided yesterday that I was gonna post it. I'm gonna update the VB version and post the source for both sometime soon. I'm not sure when.
Here's the source for both the VB and the C++ version of SprinksKiller. The VB version is a complete rewrite. It now works exactly the same as the C++ version. In fact, it's a line-by-line copy of the C++ version. Even the comments match.
A side effect of the VB version working so similar to the C++ version is that it uses lots of API functions.
I am new at C++ like I have read up to the chapter 10 in Sams Teach YourSelf C++... but how many time you think we need to master C++ as you did with that program ? I am suprising to see all the code, simply impressive. And the Vb one is very advanced I though that it was more easy to code that, like so much API there whoaaaaa Well nice job, when I see that I feel so newby.
Originally posted by DaoK I am new at C++ like I have read up to the chapter 10 in Sams Teach YourSelf C++... but how many time you think we need to master C++ as you did with that program ? I am suprising to see all the code, simply impressive. And the Vb one is very advanced I though that it was more easy to code that, like so much API there whoaaaaa Well nice job, when I see that I feel so newby.
The VB one could be simpler. Like I said before, it works exactly like the C++ version. If you look at the source for both versions, you'll see that one is a line-by-line translation of the other. As a result, the VB version uses lots of API functions, just because the C++ version also uses lots of API functions.
Originally posted by DaoK ... but how many time you think we need to master C++ as you did with that program ?
By the way, I'm relatively new to C++. This is my first real C++ program. Before this, it was "Hello World" programs and stuff like that. I suppose what helped a lot was my experience with using API functions in VB.
For anyone who's confused by the source, here's a brief explanation of how it kills the popups:
After it detects that there is no previous instance running, it uses SetTimer to run EnumWindows every 10 milliseconds. EnumWindows is passed a pointer to the SprinksHunter function, which will then be run once for every window. SprinksHunter checks out the class name and window caption of the window given to it and sends a WM_CLOSE message if it detects that it is a Sprinks popup.