Stopwatch? :)

Post Reply
Lauderdale
Posts: 13
Joined: Fri Feb 06, 2015 6:49 am
My devices: Iphone 5

Stopwatch? :)

Post 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!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Stopwatch? :)

Post by Mr. Kibernetik »

You can use function TIME() and command TIME RESET

Lauderdale
Posts: 13
Joined: Fri Feb 06, 2015 6:49 am
My devices: Iphone 5

Re: Stopwatch? :)

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Stopwatch? :)

Post by Mr. Kibernetik »

You can use BUTTON_PRESSED() function to detect if a button is pressed.

Post Reply