MouseKill, short for Mouse Kilometer, haha, im funny.... *shakes fist* start laughing, lol
I created this program a while back when i was learning how to program in visual basic. It doesn't do much more then how far you moved your mouse (in the metric system) and displays the system time and date. The "run in background" feature fails very hard, as everyone I asked specifically said that you cannot place icons in the system tray using VB, but a few hours ago, i found out you could, but i am way too lazy to add it, lol.
This code shows how to us the "GetCursorPos" to track the cursor on screen even when the windows aren't selected.
The coding may be a little sloppy, but what do I know. There is no commenting, so you'll have to figure out what everything does.
This was a long post, and I think its in the wrong place, lol
1) Yes the code is pretty sloppy. But it also includes some bad programming practises, such as the use of End. Since people usually try and learn from CodeBank examples - using them as examples of 'good coding' - I would suggest tidying it up.
2) In relation to my first point, if you are touting this as an example of how to use GetCursorPos then you should probably add some comments explaining how and why you're using the API when you do.
3) Check out the CodeBank Policy Regarding Attachments. If you don't remove those exes then one of the Mods will. Your attachment also includes a lot of files irrelevant to the example (and loading errors are thrown up)
4) Many people can't open RAR files so I would suggest compressing it to ZIP file instead.
5) You have kilometers off by a magnitude of 10.
As shirazamod said though, don't feel discouraged. Tidy it up a bit - make it to the quality that you would like to see if you were trying to learn from it & then I'm sure many people will find it useful.
Most of our members, including myself, can not open .rar files. Please use WinZip when posting attachments. Your attachment has been removed.
In addition, as has been previously mentioned, any kind of executable file, including .Exe files, .Dll files, .OCX files, etc are not permitted in attachments. When reattaching your submission, please include only source files.
Ok, I was going to add the zip file, but for some reason its not letting me manage the attachments. I also don't understand what you mean its off by a magnitude of ten, but i think it means it needs to be multiplied by ten, so it should now be 3,000,000 pixels in a kilometer, which seems to big. Also all values might be off, as i used a piece of lined paper to estimate the distance of a centimeter, lol.
I added some commenting and took out all the non needed files.
Anyone can edit the code if they want to make it better.
I will add the zip when the file upload thing stops giving me problems
EDIT: ok i added the new zip minus the exe's and made an attempt to comment, using poor spelling, and fixed the kilometer measurement.
Also as a side note, winrar is pretty cool, those that don't have it should get it, but then again thats only my opinion, and this is not the right place to talk about it, lol
Last edited by Master Thief-117; May 15th, 2006 at 03:15 PM.