• Welcome to SpeedSolving.com — the world’s largest puzzle community!

    You’re currently browsing as a guest, which means you have limited access to discussions, resources, member profiles, and community features.

    Join 50,000+ cubers and puzzle enthusiasts from around the world to ask questions, share solves, improve faster, and be part of the community.

    Registration is free, fast, and easy — create your account today.

    Already a member? Log in here to hide this message and start participating.

Multi-stage Javascript Timer

for the breakdown function, how about allow user to set "ignore key repeat". Lets say i set "ignore key repeat" to 1 secs, so if i double press the space bar, ur system will only capture once. This is because i always accidentally double press (or not sure whats actually happen) spacebar. And how bout considering all buttons around spacebar (GHJKLBNM<>) as spacebar since we have the "ignore key repeat" so that i can simply slap my keyboard.
The reason it wasn't implemented like this to begin with was to ensure maximum usability. As a system designer I want to make the program usable by the widest possible audience. So for example, if someone is timing something which takes the order of < 100ms, then I want my timer to be able to capture that.

However, I figure that in mulit-stage mode the likelihood of users requiring the program to measure steps lasting less than 100ms is probably very low, so I've implemented that delay into multi-stage mode only, and because of this it is now possible to use any key between steps in multi-stage mode.


As for the voice recognition, i can use ur software together with windows speech recognition and it works just fine (almost consistently lag 2 secs).
If the lag is consistent then it shouldn't be a problem because you're only interested in the length of time between events, not the precise time which they occur at.


And maybe you could give option to user to combine with their own speech recognition software. Emm how to tell this...

1. Create hidden input box. Set cursor there when user hit the spacebar.
2. Using timer, check the hidden inputbox whether it changed and contains wording "space", "pace", "spade" or "spat". User can add this entry in the option. If return true, then it is a "spacebar"

The reason why i need to enter several wording is because windows voice recognition is not detecting my voice precisely.

I'm not sure how your voice recognition software works, but perhaps it's possible to configure a different utterance to bind to 'spacebar'. Perhaps 'bar' or something like that.
 
Back
Top