"NULL" as my first logged answer when using "c.SetAttrib"
Marie-France Larsson
marie-france.larsson at miun.se
Tue Jun 24 13:59:09 UTC 2014
Hi!
I was wondering if someone else encountered this problem. I used the code
below in order to log which picture a participant clicks on (the answer
choices in this experiment are images on a slide). For a reason that I do
not quite understand, the answers are logged in my data output, BUT, the
first answer is always "NULL", and the answers are then logged on the wrong
row (they are displaced one row down so that the answer provided for trial
1 is logged on the row of trial 2, and so on, meaning that the last answer
is not logged at all). Anything in my code that looks wrong to you, or any
suggestion? This is the very first time I ever program an experiment at
all, so I feel like there are probably a lot of things I might be doing
wrong!
Code:
Dim theState As SlideState
Set theState = EmotionIdentification.States("Default")
Dim strHit As String
Dim providedAnswer As MouseResponseData
If EmotionIdentification.InputMasks.Responses.Count > 0 Then
Set providedAnswer =
CMouseResponseData(EmotionIdentification.InputMasks.Responses(1))
strHit = theState.HitTest(providedAnswer.CursorX, providedAnswer.CursorY)
c.SetAttrib "ClickedAnsKey", strHit
End If
--
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/msgid/e-prime/aaf59e04-10be-4ec5-a9cb-2861ebaabcad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20140624/d2821a38/attachment.htm>
More information about the Eprime
mailing list