Changing image position according to xy-coordinates from mouseclicks
Ram Kalendarev
kvlady at gmail.com
Wed Feb 26 14:00:45 UTC 2014
Hi!
I've managed to encounter the same problem!
can you please specify your solution?
Thanks!
On Tuesday, June 19, 2012 10:48:41 AM UTC+3, Johannes Bjerva wrote:
>
> I managed to solve the problem through using a global variable, which is
> set by the mouse coordinates, rather than an attribute.
> That is to say, the problem was not in the automatic addition of
> ":center", as I first assumed.
>
> Problem solved! :)
>
>
> On Monday, 18 June 2012 21:53:18 UTC+2, Johannes Bjerva wrote:
>>
>> Hello,
>>
>> I am currently developing an experiment in which the participants will
>> click an area of the screen, following which an image should appear in that
>> location.
>>
>> What I have tried so far is having a slide object containing an image
>> object. In the image object's sub-property pages I've tried to set the X
>> and Y positions to the attributes "[PicPosX]" and
>> "[PicPosY]". However, once I click apply, E-Prime automatically changes
>> this to "[PicPosX]:center" and "[PicPosY]:center".
>>
>> In order to get the coordinates themselves, I have added this inline-code
>> after the slide object:
>> Dim theMouseResponseData As MouseResponseData
>> Set theMouseResponseData = CMouseResponseData(Slide1.
>> InputMasks.Responses(1))
>> c.SetAttrib "PicPosX", theMouseResponseData.CursorX
>> c.SetAttrib "PicPosY", theMouseResponseData.CursorY
>>
>> Obtaining the coordinates and setting the attributes seems to work
>> perfectly, since I can see the coordinates in the resulting data files.
>> However, the image does not change positions, but remains in the center
>> (most likely due to E-Prime's :center-addition to my attributes).
>>
>> Any help in solving this problem would, of course, be greatly appreciated.
>>
>> Kind regards,
>> Johannes Bjerva
>>
>>
--
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/74ae32dd-9667-4d3c-a0e5-4134e61c4f85%40googlegroups.com.
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/20140226/8ca5a665/attachment.htm>
More information about the Eprime
mailing list