run task until user input

Paul Groot pfc.groot at gmail.com
Tue Mar 12 20:42:10 UTC 2013


Jim,

You could add a small inline script after the image object to terminate the
active list(s) after pressing a specific key. E.g.:

if StrComp(Stim.RESP, "X",1)=0 Then
    TrialList.Terminate
    BlockList.Terminate
End If

You should call the Terminate function on all active lists and replace the
object names with the object names used in your script.

In some cases it is more convenient to use the GetUserBreakState() function
instead of defining a specific key:

If GetUserBreakState() <> 0 Then
  ...
End IF

This will be triggered when pressing Ctrl+Shift.

Best
Paul


On 12 March 2013 19:54, Jim <jjprisciandaro at gmail.com> wrote:

> Hello forum,
>
> I have a simple task where images are randomly presented, one at a time,
> for 20 seconds each. I would like the "task" to run indefinitely until
> stopped by a user input. The goal is for me to be able to show the
> participant images until I no longer wish to (therefore, the duration of
> the task will differ from person to person and cannot be set in advance).
> Now, I just have the task running for a really long time and end up
> forcefully closing e-prime when I need the task to stop, but this is not a
> great solution.
>
> Thanks,
> Jim
>
> --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to e-prime+unsubscribe at googlegroups.com.
> To post to this group, send email to e-prime at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/e-prime/-/gr7kRTvnHM8J.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20130312/0bf9b796/attachment.htm>


More information about the Eprime mailing list