Position of mouse click responses
David McFarlane
mcfarla9 at msu.edu
Tue Sep 25 20:07:53 UTC 2012
Filiz,
First, as a general rule, you cannot treat code
examples as literal incantations to evoke your
desired result. In this case, "Stimulus" is the
name of a particular stimulus object
(TextDisplay, Slide, etc.) in the example, you
need to either replace that with the name of the
stimulus object in your program, or name your
stimulus object "Stimulus". Otherwise, the "Unknown function Stimulus" error.
Next, by "store the coordinates", your code
sample already does that with the two c.SetAttrib
commands, and they will appear in those
attributes in your .edat file. See chapter 4
"Using E-Basic" of the original User's Guide (now
ch. 5 in the latest edition), and pay attention to the c.SetAttrib command.
-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)
/----
Stock reminder: 1) I do not work for PST. 2)
PST's trained staff take any and all questions at
http://support.pstnet.com/e%2Dprime/support/login.asp
, and they strive to respond to all requests in
24-48 hours -- this is pretty much their
substitute for proper documentation, so make full
use of it. 3) In addition, PST takes questions
at their Facebook page
(http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683
), and offers several instructional videos there
and on their YouTube channel
(http://www.youtube.com/user/PSTNET ) (no Twitter
feed yet, though). 4) If you do get an answer
from PST staff, please extend the courtesy of
posting their reply back here for the sake of others.
\----
At 9/21/2012 04:53 PM Friday, filiz gözenman wrote:
>About the position of mouse click responses I
>got this code from <http://pst.net>pst.net forum (Thanks to David McFarlane):
>
>Dim theMouseResponseData As MouseResponseData
>Set theMouseResponseData =
>CMouseResponseData(Stimulus.InputMasks.Responses(1))
>c.SetAttrib "Stimulus.RespCursorX", theMouseResponseData.CursorX
>c.SetAttrib "Stimulus.RespCursorY", theMouseResponseData.CursorY
>
>
>However I still have problems. I'm quite
>unexperienced with e-prime and I have no idea
>how/where will the program the store the
>coordinates. Do I need to define attributes? In
>the experiment a color wheel is presented and
>participants click on an image and I will
>collect the coordinates on the color wheel. How
>should I define my image, because when I wrote
>exactly the code above I got an error stating
>"Unknown function Stimulus". I guess I need to
>define my stimulus which the color wheel but I just don"t know how to do that.
>
>Thank you so much for the help in advance.
>
>Filiz
--
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 https://groups.google.com/groups/opt_out.
More information about the Eprime
mailing list