I used the term "feedback.InputMasks.Add Keyboard.CreateInputMask" to
specifiy the input. Now I want to use a Joystick instead of a
keyboard. That works well for the entire experiment, but not for this
code. The error message is: "Unknown Custom Option: "Response Mode".
By the way: I use E-Prime 2. How can I solve this problem?
Thanks fo all kinds of help!
Tobias
This is the code (crucial parts are "feedback.InputMasks.Add
Joystick.CreateInputMask"):
If c.GetAttrib("exppart") = "task" Then
If c.GetAttrib(c.GetAttrib("Running") & ".Sample") MOD 60 = 0 AND
c.GetAttrib(c.GetAttrib("Running") & ".Sample") MOD 1680 <> 0 Then
c.SetAttrib "BlockAcc", Format(CStr(CDbl(SummationAcc.Mean * 100)),
"0.0")
c.SetAttrib "BlockRT", Format(CStr(CDbl(SummationRT.Mean )), "0")
RT = c.GetAttrib("BlockRT")
Acc = c.GetAttrib("BlockAcc")
blockcount = blockcount +1
feedback.InputMasks.Add Joystick.CreateInputMask("{ANY}", "", CLng
(feedback.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical
("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes")
feedback.text = "Leistung in Block " & blockcount & "/28" & "\n\n\n
\n" & "Reaktionszeit: " & RT & " ms" & "\n" & "Richtige Antworten: " &
Acc & " %" & "\n\n\n" & "- Beliebige Taste zum Fortsetzen drücken -"
feedback.run
Set SummationAcc = New Summation
Set SummationRT = New Summation
PauseA.Run
PauseB.InputMasks.Add Joystick.CreateInputMask("{ANY}", "", CLng
(PauseB.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical
("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes")
PauseB.Run
End if
I would go right to PST Web Support with this,
you may contact them at
http://support.pstnet.com/e%2Dprime/support/login.asp
, and they strive to respond to all requests in
24-48 hours. And then please post back here with the answer!
-- David McFarlane, Professional Faultfinder
"The ResponseMode and ProcessBackspace properties are valid only for
the Keyboard device. If you look at the Duration/Input tab of feedback
and click on Advanced Properties for the Keyboard input mask, you will
see that Keyboard Advanced Properties has a tab called Collection that
specifies the values for ResponseMode and ProcessBackspace. Because
Joystick does not use those properties, there is no corresponding tab
in its Advanced Properties window, and you cannot reference those
properties in script.
To fix the problem, all you have to do is delete the red portion of
the following script:
feedback.InputMasks.Add Joystick.CreateInputMask("{ANY}", "", CLng
(feedback.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical
("Yes"), "", ""<RED>, "ResponseMode:All ProcessBackspace:Yes"</RED>)
Do the same for the PauseB input mask script. You should also make
sure to create an input mask for PauseA because its duration is set to
infinite."
On 17 Dez. 2009, 22:10, David McFarlane <mcfar...@msu.edu> wrote:
> Tobias,
>
> I would go right to PST Web Support with this,
> you may contact them athttp://support.pstnet.com/e%2Dprime/support/login.asp