Incremental adjustments to participant's response

18 views
Skip to first unread message

alex.m...@gmail.com

unread,
Nov 19, 2007, 12:47:34 PM11/19/07
to E-Prime
Dear E-prime group,

I believe a question like this was answered back before the group went
onto google (I dimly remember something to do with adjusting the
length of a line), but I've lost a lot of my past messages and so
can't dig it out.

I want to get participants to either...

click on a circle and 'drag it' bigger or smaller, and then record the
final 'resting' size of the circle

or...

make the circle incrementally bigger or smaller (preferably a pixel
at a time) by pressing a button, and then logging the final size.

At the moment I'm using E-prime to draw my stimuli. So something
like...

cnvs.Circle 640, 512, c.GetAttrib("TargetSize")

Where the '640' and '512' are coordinates and the
'c.GetAttrib("TargetSize")' is the radius of the circle.

Any help would be greatly appreciated on either or both (if you have
the time!) questions.

many thanks

Alex Marchant MSc
Goldsmiths, University of London

chen

unread,
Nov 19, 2007, 2:06:13 PM11/19/07
to e-p...@googlegroups.com
 
Hi, I don't konow how to draw circles, but i had wrote a program to change the fontsize automaticlly, maybe similar to your second question.
 
"make the circle incrementally bigger or smaller  (preferably a pixel
at a time) by pressing a button, and then logging the final size."
 
below are codes showing what I had done in my program, I just type in, not debuged yet, just showing the main idea.
dim again as long
dim radius as long
 
again=1
radius=10
 
while again
   cnvs.Circle 640, 512, radius  ' in my original program, it's a textdisplay object
                                 ' presenting a word, if there is a response, the object
                                 ' will disappear, Which object can draw circle?
   if object.response="a" then
         again=0                 ' press "a" then finish
   elseif object.response="b" then
         radius=radius+1         ' press "b" darw larger circle
   else
         radius=radius-1         ' press other key draw small circle
   endif
wend
 
 

--
Chunhui Chen
______________
 
Beijing Normal University
&
University of California, Irvine

Alex Marchant

unread,
Nov 20, 2007, 4:26:34 AM11/20/07
to e-p...@googlegroups.com
thanks Chunhui for your speedy reply. I'll give it a go.
 
Alex

Reply all
Reply to author
Forward
0 new messages