the key to your problem is "HitTest". look for that in Help>E-Basic Help.<br>basically, HitTest checks to see whether a mouse click occurred on an object or not. you could then use a "Select Case" dealy in your inline to respond differently depending which object (or none) is clicked.<br>
<br><div class="gmail_quote">On Tue, Jul 1, 2008 at 3:23 PM, Dina <<a href="mailto:deedeevau@hotmail.com">deedeevau@hotmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Dear E-primers,<br>
<br>
I'm stuck with an inline script and I hope there's someone<br>
who is willing to help me with this.<br>
<br>
One of the tasks I'm programming in E-prime is the following:<br>
<br>
-Consists of 8 main blocks of 12 trials each.<br>
<br>
-In addition, there's 1 block with only 3 practice trials.<br>
<br>
-On each trial, people have to make a choice between 4 response<br>
alternatives: UpperLeft, UpperRight, BottomLeft, BottomRight. These<br>
locations correspond to an image sub-object in each corner of the<br>
screen.<br>
<br>
-At the moment, all the blocks are set on keyboard with 1 (UL), 2<br>
(UR), 3 (BL) and 4(BR) as responses, except for the first block which<br>
I'm trying to switch on mouse-input.<br>
<br>
-In the end, I want to change all blocks in mouse-input (at the very<br>
end, I will have to emulate into touch screen mode).<br>
<br>
-During the first block only, all four pictures/image sub-objects are<br>
correct (people have to choose their favourite picture); on the rest<br>
of the 7 blocks, only one of the pictures will be correct. I'm<br>
assuming that different inline scripts will be necessary.<br>
<br>
Using the script, the programme runs. However, the responses on each<br>
trial are not logged properly (it states: "1" which corresponds to the<br>
left mouse-button click, I assume) and wherever I click on the screen,<br>
I can proceed to the next trial (as opposed to only clicking on the<br>
image sub-objects), so clicks outside the image-sub objects are<br>
accepted as responses.<br>
<br>
How can I solve these problems? I would be very grateful if someone<br>
could advice me,<br>
I have to implement this in many other tasks.<br>
Many thanks in advance!<br>
<br>
Greetings,<br>
<font color="#888888">Dina<br>
<br>
</font></blockquote></div><br><br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime-unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en <br> -~----------~----~----~----~------~----~------~--~---<br>
<br>