helper@castle.ed.ac.uk (A Wilson) (11/12/90)
Can someone help me with some hypertalk scripting.
I have written a stack to measure how long it takes a user
(well a child) to press the mouse button when they see an
object move on the screen.
I am happy with my stack but I cannot see anyway of stopping
the object from moving after the mouse button is clicked.
My stack does the following:
1 records the ticks
2 pick up the object
3 drag the object from the top to the bottom of the screen
4 record the tichs when the mouse is clicked
5 record the difference between the start and end ticks
6 divide by 60 to get the seconds
The script is something like this:
on mouseUp
set the userLevel to 5
hide menubar
set cursor to none
wait 5 seconds
set cursor to non
choose select tool
set cursor to none
doMenu "Select"
set cursor to none
set dragSpeed to 500
put the ticks into tstart
set cursor to none
repeat until the mouseclick
set cursor to none
drag from 315,33 to 315,400
end repeat
put ticks into tend
put (tend-tstart)/60
choose select tool
doMenu "Revert"
choose browse tool
end mouseUp
Any ideas? Or can anyone point me to another stack?