Search found 2 matches

by jamesmoroni
Thu Oct 03, 2013 3:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Measuring response time
Replies: 2
Views: 1935

Re: Measuring response time

Klaus wrote:Hi James,

you need to declare a GLOBAL in every script you use it!

This should do the trick:

Code: Select all

on mouseDown
   global showtime
   put the milliseconds - showtime into line whichline of field 1
   nextturn
end mouseDown
Best

Klaus

Klaus,

Thanks so much. Works great now.

James
by jamesmoroni
Wed Oct 02, 2013 8:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Measuring response time
Replies: 2
Views: 1935

Measuring response time

Hello, I"m trying to build an app that will measure a user's response time by measuring how long after a button is clicked for it to become visible. The simplest solution is to have one button put the milliseconds * -1 into a field then hide the response button and show it after a random interval. O...