Code: Select all
on keyDown
pass keyDown
end keyDown
I am unable to see any difference.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on keyDown
pass keyDown
end keyDown
Code: Select all
on keyDown
pass keyDown
end keyDown
on keyUp KP
put KP after fld "fTEXT"
end keyUp
It was an assumption on my part that keyDown messages were the culprit, only because the result was pretty much the same as what happened with my own original attempts: When one holds down (rather than taps) the MCQ response key for a little while on the first test item, when the key is released the stack jumps to the last card and reports one answer correct, without ever allowing the user to view or respond to the second and third items.my MCQ stack WORKS because there is nowhere for keyDown signals to go.
Please be aware: Once I figured out how to adapt to my own situation the keysDown() strategy you described earlier in this thread, it works *perfectly* in addressing both overly-long and repeated keypresses. So no need to refine it on my behalf.here is a slightly improved version...If not (tolerable), more work is required, and I am thinking about rethinking.
Code: Select all
put "49,50,51,52,65436,65433,65435,65430" into tValidKeys
put itemOffset(keysDown(),tValidKeys) into tListOffset
if tListOffset < 5 then
put tListOffset into tActualNumber
else
put tListOffset - 4 into tActualNumber
end if
Code: Select all
if the optionKey is down and the commandKey is down then exit to top
I'd be inclined to use commandkeyDown or optionKeyDown along with an arbitrary keypress. That way you don't need to interrupt your other key-based handlers.The only issue now is how to allow the clinician to intervene with some key-combination that will terminate the test
Code: Select all
on optionKeyDown pKey
if pKey is "k" then exit to top
end optionKeyDown