Results 1 to 3 of 3

Thread: Help on VB 2008

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    24

    Help on VB 2008

    Id like to make a stopwatch, and how do you move and click mouse automaticaly?

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    24

    Re: Help on VB 2008

    Any help will be thanked

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Help on VB 2008

    We'll need quite a bit more information than that. For one thing, there is a Stopwatch object that does a very nice job as a stopwatch, but if you want a graphical representation of a stopwatch, then the Stopwatch object is not going to do what you want. For a graphical representation you'd want to use a timer with the image updating on the Tick event. The problem with this solution is that the resolution of a Timer is not very fine. You would want to limit yourself to an interval of tenths of a second, I think. I don't believe you'll get any kind of accuracy at hundredths of a second.

    The second considerations is that the shorter the interval, the simpler you will want the interface to be. If you are just showing numbers in a label, then that is quite simple, but if you want to make some fancier graphical display, such as sweep hands on a clock face, then you probably want the timer interval to be a bit slower.

    On the other hand, if you don't really care to see the numbers count up, then the Stopwatch object does a great job, and is accurate down to the millisecond, or below. In that case, you'd have a start, stop, and perhaps lap, button, and start, stop, and whatnot on the Stopwatch object in the button click events.
    My usual boring signature: Nothing

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