Results 1 to 5 of 5

Thread: MouseKill (measures mouse movement)

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    10

    MouseKill (measures mouse movement)

    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
    Last edited by Hack; May 15th, 2006 at 06:01 AM.

  2. #2
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: MouseKill (measures mouse movement)

    I haven't had a look at the code yet but don't feel discouraged yet, you managed to post it in the correct place!
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  3. #3
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: MouseKill (measures mouse movement)

    Just a few comments from me.

    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.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MouseKill (measures mouse movement)

    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    10

    Re: MouseKill (measures mouse movement)

    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
    Attached Files Attached Files
    Last edited by Master Thief-117; May 15th, 2006 at 03:15 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width