E-Prime Pausing?

David McFarlane mcfarla9 at msu.edu
Tue Nov 20 21:19:52 UTC 2007


AnaKrann,

>We were wondering if there was any possible way to PAUSE a task in 
>the event of a crabby
>infant so as to not have to start the task all over after each mini-fits.

You might try the GetUserBreakState() and SetUserBreakState methods, 
look these up in the E-Basic online help file.  Pressing Ctrl+Shift 
any time during the experiment will set the user break state.  You 
then have to catch this with inline script at some appropriate place 
in your experiment.  Your inline script can then pause the experiment 
until you perform some action, then return to the experiment.  Make 
sure to reset the user break state before your experiment continues!

Here is a crude script example:

If GetUserBreakState() Then
     MsgBox "Take a break"  ' Displays a message until the user clicks OK
     SetUserBreakState 0  ' Make sure to reset this!
End If

You might instead have your script jump to some other object in your 
experiment, or do a List.Terminate, or run a TextDisplay object to 
wait for a key press, etc., but I hope you get the idea.  Let me know 
if you need any more help.

-- dkm

---
David McFarlane, Systems Designer
Dept. Psychology, Michigan State University
mcfarla9 at msu.edu    www.msu.edu/~mcfarla9
Voice: (517) 353-0799    Fax: (517) 353-1652


--~--~---------~--~----~------------~-------~--~----~
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