pause function
Yan Yu
yanhyu at gmail.com
Wed Nov 11 15:09:50 UTC 2009
Hi Eprimers,
I used a script to excute the pause function, however, during the
experiment, whenever I pause it a second time, eprime will quit the task.
My knowledge on scripting is minimal. I am wondering if anybody can help me
out.
Here is the inline script that I placed at the beginning of each block.
'Check for UserBreakState
'Pause2 is run only if Ctrl+Shift is pressed
If (GetUserBreakState <> 0) Then
'Incorrect CLng Object reference Pause2.InputMasks.Add
Keyboard.CreateInputMask("{SPACE}", "", CLng(Pause.Duration), CLng("1"),
ebEndResponseActionTerminate, CLogical("Yes"), "", "", "ResponseMode:All
ProcessBackspace:Yes")
NetStation_SendTrialEvent c, Pause2
NetStation_SendTRSPEvent c, Pause2
Pause2.InputMasks.Add Keyboard.CreateInputMask("{SPACE}", "",
CLng(Pause2.Duration), CLng("1"), ebEndResponseActionTerminate,
CLogical("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes")
Pause2.Run
'Added code
SetUserBreakState 0
End If
Thanks a lot,
Yan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20091111/042231ca/attachment.htm>
More information about the Eprime
mailing list