Today I thought I'd make a metronome. I know my script is a bit primative and probably incorrect.
#include <Sound.au3>
$wait = InputBox("Miliseconds to Wait", "Enter a number greater than zero.")
While 1
_SoundPlay("metro.wav", 1)
Sleep($wait)
WEnd
The problem I am having is that as soon as another process does anything, the metronome slows down. Is there a way that I can force it to keep a regular beat? Or do I have to forget using Sleep() and try another approach?