Multiple Image Responses

Becky Clements cobwebfaery at gmail.com
Sun Aug 14 20:41:04 UTC 2011


Hi Ben,

You advise was perfect select case works like a charm! I ended up
using two slides this is the general gist of the script.

		Select Case Shapes.RESP
			Case strHit1 = c.GetAttrib("a") And strHit2 = c.GetAttrib("b")
				Shapes.ACC = 1
			Case strHit1 = c.GetAttrib("b") And strHit2 = c.GetAttrib("a")
				Shapes.ACC = 1
			Case strHit1 = c.GetAttrib("c") And strHit2 = c.GetAttrib("d")
				Shapes.ACC = 1
			Case strHit1 = c.GetAttrib("d") And strHit2 = c.GetAttrib("c")
				Shapes.ACC = 1
			Case Else
				Shapes.ACC = 0
		End Select

	End If

For the second slide

	Select Case Shapes1.RESP
			Case strHit3 = c.GetAttrib("a") And strHit4 = c.GetAttrib("b")
				Shapes1.ACC = 1
			Case strHit3 = c.GetAttrib("b") And strHit4 = c.GetAttrib("a")
				Shapes1.ACC = 1
			Case strHit3 = c.GetAttrib("c") And strHit4 = c.GetAttrib("d")
				Shapes1.ACC = 1
			Case strHit3 = c.GetAttrib("d") And strHit4 = c.GetAttrib("c")
				Shapes.ACC = 1
			Case strHit1 = c.GetAttrib("a") And strHit2 = c.GetAttrib("b")
				Shapes1.ACC = 0
			Case strHit1 = c.GetAttrib("b") And strHit2 = c.GetAttrib("a")
				Shapes1.ACC = 0
			Case strHit1 = c.GetAttrib("c") And strHit2 = c.GetAttrib("d")
				Shapes1.ACC = 0
			Case strHit1 = c.GetAttrib("d") And strHit2 = c.GetAttrib("c")
				Shapes1.ACC = 0
			Case Else
				Shapes1.ACC = 0
		End Select

	End If

Thank you for all of your help it has been most enlightening!

Becky



On Aug 10, 4:12 pm, ben robinson <baltimore.... at gmail.com> wrote:
> i'm a big fan of Select Case... rather than If Then... when things start
> getting complicated.
> you could do something like this:
> Select Case strhit1
>     Case "redcircle"
>         Select Case strhit2
>             Case "bluecircle"
>                 CORRECT
>             Case Else
>                 INCORRECT
>         End Select
>     Case "bluecircle"
>         Select Case strhit2
>             Case "redcircle"
>                 CORRECT
>             Case Else
>                 INCORRECT
>         End Select
>     Case "redsquare"
>     Case "bluesquare"
> End Select
>
> On Wed, Aug 10, 2011 at 1:08 PM, Becky Clements <cobwebfa... at gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi Ben,
>
> > Thanks for the advise. The task is a little bit more complicated than
> > simply logging two response which if that is all we were doing two
> > slides would be fine but the two response are paired in regards to
> > accuracy. For example say the four images comprised of a red circle,
> > blue circle, yellow triangle, and red rectangle there are two correct
> > answers consisting of 4 mouse responses the two circles are one
> > correct pair and the red circle and the red triangle the other correct
> > pair. The participant is not restricted as to which pair they must
> > pick first but it is a paired response that is correct rather than
> > each response independently. Do you know if there is a way of pairing
> > the hittest? I have tried to combine two attributes for example
> > if strhit1 = red circle and strhit2 = blue circle then
>
> > On Aug 10, 11:02 am, ben robinson <baltimore.... at gmail.com> wrote:
> > > i'm sure you could find a way to do this using a single slide collecting
> > the
> > > two responses, but i think it would be easier to use two slides one after
> > > the other, each collecting a single response.
> > > i would have a procedure start with Label1, then Slide1, then Inline1,
> > then
> > > Label2, Slide2, Inline2.
> > > Slide1 shows your 4 images.
> > > Inline1 performs a HitTest on the mouse response to Slide1.  if an
> > invalid
> > > response then go back to Label1 to represent Slide1, otherwise procede to
> > > Slide2.  you might label this valid response something like strHit1.
> > > Slide2 is configured exactly the same as Slide1 so that to the
> > participant's
> > > eye no change occurs on the screen following their successful mouse
> > response
> > > to Slide1.
> > > Inline2 again checks to see that a valid response is made.  if not, for
> > > instance if they click on the same item as they did on Slide1, just jump
> > > back to Label2 so that Slide2 can be redisplayed and a valid response
> > > collected.  label that valid response strHit2.
> > > furthermore, with Inline2 you can take your two valid responses and craft
> > > your remaining slide, which you said needed to be based on the previous
> > two
> > > responses.
> > > for instance, once you've received a valid response to Slide2, Inline2
> > might
> > > continue as follows:
>
> > > Select Case strHit1
> > >     Case "Image1"
>
> > > Select Case strHit2
> > >     Case "Image1"
> > >         'set Slide3 to reflect a choice of Slide1.Image1 and
> > Slide2.Image1
> > >     Case "Image2"
> > >         'set Slide3 to reflect a choice of Slide1.Image1 and
> > Slide2.Image2
> > >     Case "Image3"
> > >         'set Slide3 to reflect a choice of Slide1.Image1 and
> > Slide2.Image3
> > >     Case "Image4"
> > >         'set Slide3 to reflect a choice of Slide1.Image1 and
> > Slide2.Image4
> > > End Select
>
> > >     Case "Image2"
> > >     Case "Image3"
> > >     Case "Image4"
> > > End Select
>
> > > On Tue, Aug 9, 2011 at 8:56 PM, Becky Clements <cobwebfa... at gmail.com
> > >wrote:
>
> > > > Hi everyone.
>
> > > > I am currently designing an experiment in which children will be
> > > > presented with four images, and will have to choose two objects using
> > > > a mouse response.  I have looked at the "Multiple Response Sample"
> > > > provided on EPrime Support, however, I cannot see how to manipulate
> > > > this Inline to an image slide, in order to record the two responses
> > > > from the one slide.  (The proceeding slide's correct answer is based
> > > > upon the combination of these two responses, so it would be preferable
> > > > to have the multiple responses be on one slide).
>
> > > > Any help would be greatly appreciated.
>
> > > > Cheers,
> > > > Becky
>
> > > > --
> > > > 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.
>
> > --
> > 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.

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