How to define which areas can be clicked on a slide?

Paul Groot pfc.groot at gmail.com
Mon Jun 30 09:05:40 UTC 2014


Hi Marie-France,

I think this can be solved by modifying the exit condition of the ClickList
(in my ImageSelectionExample script for example). By setting the number of
cycles to a large number it is possible to accept multiple clicks withing
one trial. Typically, the list would be exited after hitting a specific
number of images. This can be done by calling the ClickList.Terminate
function in the HandleClick inline as soon as the terminate condition is
met. The ClickList will repeat as long as the Terminate function is not
called, so this will solve the stray clicks. Note that every click
(accepted or not) will add a new line to the edat output file.

Paul





On 26 June 2014 13:12, Marie-France Larsson <marie-france.larsson at miun.se>
wrote:

> Hi Paul!
> Thank you very much for the links, great examples! I had managed to log
> the answers with script that is a bit similar to the one found in your
> examples, but the problem that I have is that the pictures on my slide do
> not cover the entire canvas, meaning that participants can click beside a
> picture, and the experiment will still go forward, but without a valid
> answer in the log. Since my participants will be children, there is a high
> risk that they will click a bit randomly, and I want to avoid missing
> values as much as possible by making the rest of the canvas "unclickable".
> I am trying to build an If / Else statement to solve it, I'm not sure
> that's the best way to go, but hopefully it can work.
> Regards,
> Marie-France
>
> On Wednesday, June 25, 2014 12:11:58 AM UTC+2, Paul Groot wrote:
>>
>> You might have a look at these examples:
>>
>> http://pfcgroot.nl/e-prime/83-example-scripts/88-image-click-example.html
>> http://pfcgroot.nl/e-prime/83-example-scripts/84-image-
>> selection-example.html
>>
>> Paul
>>
>>
>> On 24 June 2014 17:19, Marie-France Larsson <marie-fran... at miun.se>
>> wrote:
>>
>>> Hi!
>>> I seem to have reached a deadend again. I cannot for the life of me
>>> figure out how to define which areas can be valid for a mouse click on a
>>> slide, in this case it should be on SlideImages and SlideImages only. The
>>> way it is now, a click anywhere on the slide will make the experiment go
>>> forward to the next trial. However, I would like the experiment to go
>>> forward only after the participant clicks on one of the SlideImages. A
>>> mouse click anywhere else on the slide should not have any effect. Is this
>>> something that I can fix with the "Duration/Input" settings in the slide's
>>> properties or will it require InLine code?
>>>
>>> Thank you for your input!
>>>
>>> Kind regards,
>>> Marie-France
>>>
>>> --
>>> 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+u... at googlegroups.com.
>>> To post to this group, send email to e-p... at googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/e-prime/27cb52b9-e02a-4160-8873-9d5393596479%40googlegroups.com
>>> <https://groups.google.com/d/msgid/e-prime/27cb52b9-e02a-4160-8873-9d5393596479%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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/08d24a5b-5428-41aa-b1ae-a8bd9b287e2b%40googlegroups.com
> <https://groups.google.com/d/msgid/e-prime/08d24a5b-5428-41aa-b1ae-a8bd9b287e2b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAKAdR-uabJD1Y_taCc0Tu3r2Pbk4ryJMEROKiaUozmRpSOD1mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20140630/f559f688/attachment.htm>


More information about the Eprime mailing list