Stopwatch? :)
-
- Posts: 13
- Joined: Fri Feb 06, 2015 6:49 am
- My devices: Iphone 5
Stopwatch? :)
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!
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Stopwatch? :)
You can use function TIME() and command TIME RESET
-
- Posts: 13
- Joined: Fri Feb 06, 2015 6:49 am
- My devices: Iphone 5
Re: Stopwatch? :)
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Stopwatch? :)
You can use BUTTON_PRESSED() function to detect if a button is pressed.