Advance to different SlideStates for different responses

Erin erin.siebert at gmail.com
Thu Aug 23 22:09:33 UTC 2012


Hello everyone,
I have a simple experiment that displays two images on the screen.  The two 
SlideImages are named "LeftImage" and "RightImage," and are diplayed on a 
Slide named "Stimulus."  On each trial, one image is correct, and one is 
incorrect; responses are made with a mouse click on an image.  
 
After a response is made, I want to advance to the Slide 
"ImageFeedback," displaying one of three SlideStates "LeftCorrect," 
"RightCorrect," or "Incorrect," depending on the response.
 
I am tring to figure out what the appropriate inline script would be to 
accomplish this.  I am thinking something similar to the following may 
work, but I know this isn't quite right:
 
 
If strHit = c.GetAttrib("LeftImage") and Stimulus.ACC=1, Then
Set ImageFeedback.ActiveState = "LeftCorrect" 

Else

If strHit = c.GetAttrib("RightImage") and Stimulus.ACC=1, Then
Set ImageFeedback.ActiveState = "RightCorrect"

Else

If Stimulus.ACC=0,
Set ImageFeedback.ActiveState = "Incorrect"

End If

 

I looked at the example programs "Response Areas For Mouse Input" and 
"LoadImageUpunMouseClick."  I also searched though the Google Group, and 
found some similar posts, but was unable to come up with an inline script 
solution that worked.  Any help would be very appreciated.  I will post the 
solution that I get to work.  Thanks so much!

 

Erin

 

-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/xIDmOlnPo4YJ.
For more options, visit https://groups.google.com/groups/opt_out.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20120823/f700a281/attachment.htm>


More information about the Eprime mailing list