Page 1 of 1
Stopwatch? :)
Posted: Fri Feb 06, 2015 6:55 am
by Lauderdale
Anybody know if I can get access to the stopwatch, or is there a macro I can use where I press a button twice and it records the time between touches on the screen? Thanks!
Re: Stopwatch? :)
Posted: Fri Feb 06, 2015 6:58 am
by Mr. Kibernetik
You can use function TIME() and command TIME RESET
Re: Stopwatch? :)
Posted: Sat Feb 07, 2015 6:24 am
by Lauderdale
Thanks, I think I got it now! Ok I have another question.
I have a bunch of buttons on the screen but I want the user to only select one and then move on to the next screen. I need to know which button they selected. What is the best approach to do this?
My approach is I'm trying to make an array of button presses. So I initialize my array as dim x(30) but I am not sure how to store each button press in its unique slot of the array. All are going to be zero until there is one "1" and then I move on. Then I can use a for loop to figure out which button was pressed.
Re: Stopwatch? :)
Posted: Sat Feb 07, 2015 7:09 am
by Mr. Kibernetik
You can use BUTTON_PRESSED() function to detect if a button is pressed.