<div dir="ltr">Hey Ziv,<div style>actually I think you could solve this problem with less programming, telling eprime to also measure key releases, then having an a testslide for two responses (press and release) which registers key pressed and time of release, then you just put an inline saying that if the waiting time has not passed (so the moment of the new slide, randomly calculated beforehand) then go (jump) to end of trial, if it has passed go to the next slide (program responding)</div>
<div style>Best</div><div style>Katrin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/29 Ziv Ronel <span dir="ltr"><<a href="mailto:ronelziv@gmail.com" target="_blank">ronelziv@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 style="white-space:pre-wrap"> </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 style="white-space:pre-wrap"> </span>Dim KeyReleaseTime As Long</div><div><span style="white-space:pre-wrap"> </span>If ebStatePress = 0 Then</div><div><span style="white-space:pre-wrap"> </span>KeyReleaseTime = Clock.ReadMillisec</div>
<div><span style="white-space:pre-wrap"> </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><span class="HOEnZb"><font color="#888888"><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 <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<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" target="_blank">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" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
<br>
<br>
</font></span></blockquote></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/CACnHcBfAG4br5smMADNubS3M41J8Q8umcvqNh1UsAq7mDm-xtg%40mail.gmail.com?hl=en-US">https://groups.google.com/d/msgid/e-prime/CACnHcBfAG4br5smMADNubS3M41J8Q8umcvqNh1UsAq7mDm-xtg%40mail.gmail.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 />