Tracking image


Author
Message
James Charlie
James Charlie
Respected Member (315 reputation)Respected Member (315 reputation)Respected Member (315 reputation)Respected Member (315 reputation)Respected Member (315 reputation)Respected Member (315 reputation)Respected Member (315 reputation)Respected Member (315 reputation)Respected Member (315 reputation)
Group: Forum Members
Posts: 5, Visits: 9
Hi,

I am trying to design a study where I can trace what image that a participant choose. I only display one image that have a number of objects and ask participants to click on object that they would like to purchase. So far, I only can tell the coordinate where they clicked on but I want the output can also provide the name of the object as well. Is there a way to do this?

Thank you.

Here is my script so far:

<values>
/percent_vertical_targety = 0
/percent_horizontal_targetx = 0
/percent_response_x = 0
/percent_response_y = 0
</values>


<picture objectpicture2>
/ items = ("object.JPG")
/ size = (100%,100%)
/ select= 1
/ position = (50%,50%)
</picture>

<trial object2>
/ stimulusframes = [1=objectpicture2]
/ timeout = (60000)
/ inputdevice = mouse
/ validresponse = (lbuttondown)
/ontrialend = [values.percent_horizontal_targetx = display.getpercentx(trial.object2.responsex)]
/ontrialend = [values.percent_vertical_targety= display.getpercenty(trial.object2.responsey)]
</trial>

<block objectblock2>
/ trials = [1-3=sequence(object2)]
</block>

<data>
/ columns = (build, computer.platform, date, time, subject, group, blockcode, blocknum, trialcode, trialnum,
Values.percent_response_x, values.percent_response_y,
values.percent_horizontal_targetx, values.percent_vertical_targety)
/ separatefiles = true
</data>


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
James Charlie - Wednesday, February 27, 2019
Hi,

I am trying to design a study where I can trace what image that a participant choose. I only display one image that have a number of objects and ask participants to click on object that they would like to purchase. So far, I only can tell the coordinate where they clicked on but I want the output can also provide the name of the object as well. Is there a way to do this?

Thank you.

Here is my script so far:

<values>
/percent_vertical_targety = 0
/percent_horizontal_targetx = 0
/percent_response_x = 0
/percent_response_y = 0
</values>


<picture objectpicture2>
/ items = ("object.JPG")
/ size = (100%,100%)
/ select= 1
/ position = (50%,50%)
</picture>

<trial object2>
/ stimulusframes = [1=objectpicture2]
/ timeout = (60000)
/ inputdevice = mouse
/ validresponse = (lbuttondown)
/ontrialend = [values.percent_horizontal_targetx = display.getpercentx(trial.object2.responsex)]
/ontrialend = [values.percent_vertical_targety= display.getpercenty(trial.object2.responsey)]
</trial>

<block objectblock2>
/ trials = [1-3=sequence(object2)]
</block>

<data>
/ columns = (build, computer.platform, date, time, subject, group, blockcode, blocknum, trialcode, trialnum,
Values.percent_response_x, values.percent_response_y,
values.percent_horizontal_targetx, values.percent_vertical_targety)
/ separatefiles = true
</data>


If you want to know which on-screen object was clicked on, then those objects should be in your /validresponse attribute

/ validresponse = (objectpicture2, ....)


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search