hello E-prime hive brain, <div><br></div><div>I know it's probably dead simple but iv'e been at it for a week now.<br><br>i'm doing a study in which random pauses are introduced, in a frustrating matter, and the participants should press keys randomly in an attempt to make the program work. <br><br>i need to measure how many frustrated keypresses there were, at what rate, and for how long each key was down (to measure these long angered key presses). <br><br>I managed to create the first two, but haven't been able to measure duration. </div><div>the only thing that came even close was this piece of code that I wrote:</div><div><br></div><div><div> Dim theResponseObject As RteRunnableInputObject</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1"))</div></div><div><br></div><div><div> Debug.Assert Not theResponseObject Is Nothing</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Dim KeyReleaseTime As Long</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>If ebStatePress = 0 Then</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>KeyReleaseTime = Clock.ReadMillisec</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>End If</div></div><div><br></div><div> c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime</div><div><br></div><div><br></div><div>(there is also a loop in there designed to redo that for every key press made in "wait1", but i've left it out)</div><div><br></div><div><br></div><div>HELP!</div><div><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/35f3673a-e830-4b58-8d09-51c86d567f19%40googlegroups.com?hl=en-US">https://groups.google.com/d/msgid/e-prime/35f3673a-e830-4b58-8d09-51c86d567f19%40googlegroups.com?hl=en-US</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
<br />
<br />