Response to a slide

David McFarlane mcfarla9 at msu.edu
Thu Feb 26 14:12:18 UTC 2009


Greg,

> I have a slide that I am looping through (time out at 100ms).  Each time 
> I change one of the values on the slide (random number).  The subject is 
> supposed to press a key to stop it and then I do some calculations with 
> what ever the random number was at the time.  I would like the subject 
> to do this with the space bar.  When I set the allowable response to 
> {SPACE} and my inline do a check: If Slide1.RESP = " " and I have also 
> tries If Slide1.RESP = chr(32), it does not work.  If I set the 
> allowable response to 1 and do the check If Slide1.RESP = "1", It works 
> perfectly.  I would think that I need something in my if statement other 
> than " " or chr(32).
> 
> Anyone have any ideas?  Thanks.

BTW, if I were looping through a slide and just wanted to stop when the 
subject responds to any presentation, I might try another EP trick. 
Instead of even getting a response to each slide presentation, I might 
put a Wait object (let's call it ResponseWait) before my slide loop.  I 
would make its Duration 0, set it collect my desired response, and 
(here's the key) set Time Limit to "(infinite)" or the max duration of 
my slide loop.  The PST User's Guide calls this Extended Input, see the 
much overlooked Appendix C.  I would probably also set its End Action to 
Terminate so that it will terminate the current slide when the subject 
responds, unless I wanted to allow the final slide to time-out on its 
own.  Anyway, then in my script or whatever I would just test for a 
response to ResponseWait instead of my slides.

I really don't know if this makes things any better in your case, but I 
had an experiment where this technique solved a lot of problems.

-- David McFarlane, Professional Faultfinder

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---



More information about the Eprime mailing list