Id like to make a stopwatch, and how do you move and click mouse automaticaly?
Printable View
Id like to make a stopwatch, and how do you move and click mouse automaticaly?
Any help will be thanked ;)
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.