|
Post by annahgrace on Sept 30, 2021 20:00:28 GMT
Hi there,
I am running an experiment where I need people to look at a picture of a face and then select what expression the face is displaying. For this, I need to be able to record which bitmap they select (in this case, I just have images of emotion words presented). Can anyone help me do this? I know that STATUS only saves whether the response is correct or incorrect, but I need to save what stimulus was selected.
bitmaps f1 FACES01.jpg happy zhappy.png sad zsad.png angry zangry.png fearful zfearful.png
task t1 mouse hide show bitmap f1 0 0 delay 2000 clear 1 mouse show show bitmap happy -300 0 show bitmap sad -100 0 show bitmap angry 100 0 show bitmap fearful 300 0 readmouse l 2 5000 range 2 3 4 5 clear -1 clear -2 clear -3 clear -4 save STATUS
block test tasklist t1 1 end
Thank you in advance!
|
|
|
Post by PsyToolkit on Oct 5, 2021 13:21:34 GMT
You can use the variable UNDER_MOUSE to determine which stimulus is under mouse.
Email me if you need more help.
I will write a lesson about this topic.
The UNDER_MOUSE will be the bitmap you clicked, using your example:
bitmaps f1 FACES01.jpg happy zhappy.png sad zsad.png angry zangry.png fearful zfearful.png
task t1 mouse hide show bitmap f1 0 0 delay 2000 clear 1 mouse show show bitmap happy -300 0 show bitmap sad -100 0 show bitmap angry 100 0 show bitmap fearful 300 0 readmouse l 2 5000 range 2 3 4 5 clear -1 -2 -3 -4 save UNDER_MOUSE STATUS
block test tasklist t1 1 end
|
|