Post by hk on Jul 19, 2024 8:26:05 GMT
Hi Everyone,
I am experiencing difficulties with getting my code to detect the accurate mouse click selection of a bitmap or text. The code involves showing a stimulus and getting the participant to select one of six accurate bitmaps or texts. Everything works except for when showing whether the correct or incorrect response was made. When clicking on the correct bitmap, it will show 'incorrect', however, sometimes correct on different locations of the screen. I tried to use readmouse, but the number I assigned does not seem to register as the accurate choice. My understanding is that during the task (rather than under bitmaps), the order of the presentation of the bitmaps should be aligned with the number I insert into the code (shown in bold): readmouse l 6 99999, with 6 indicating the 6th bitmap under tasks, however, it does not. I have also tried using the range (range 1 6) and set $number_of_bitmap under MOUSE_X MOUSE_Y and show text $number_of_bitmap 200 200, but it only shows the number 1 despite there being 6 bitmaps. I would very much appreciate any advice. I have attached one of my codes.
task fer
show bitmap fixation
delay 2000
clear -1
show bitmap y_m_n_b_013 0 0 #shows a neutral face expression
delay 2000
clear -1
mouse show
draw off
show bitmap angry -270 -100 #top left bitmap1 of text 'angry'
show bitmap happy 0 -100 #top middle bitmap2 of text 'happy'
show bitmap sad 270 -100 #top right bitmap3 of text 'sad'
show bitmap disgust -270 150 #bottom left bitmap4 of text 'disgust'
show bitmap fear 0 150 #bottom middle bitmap5 of text 'fear'
show bitmap neutral 270 150 #bottom right bitmap6 of text 'neutral'
clear -1 -2 -3 -4 -5 -6
readmouse l 6 10000 #if bitmap neutral is selected, the response is correct
if STATUS == CORRECT
text color green
show text "CORRECT"
delay 1000
clear -1
else
text color red
show text "INCORRECT"
delay 2000
clear -1
fi
save RT STATUS BLOCKNUMBER BLOCKNAME
I am experiencing difficulties with getting my code to detect the accurate mouse click selection of a bitmap or text. The code involves showing a stimulus and getting the participant to select one of six accurate bitmaps or texts. Everything works except for when showing whether the correct or incorrect response was made. When clicking on the correct bitmap, it will show 'incorrect', however, sometimes correct on different locations of the screen. I tried to use readmouse, but the number I assigned does not seem to register as the accurate choice. My understanding is that during the task (rather than under bitmaps), the order of the presentation of the bitmaps should be aligned with the number I insert into the code (shown in bold): readmouse l 6 99999, with 6 indicating the 6th bitmap under tasks, however, it does not. I have also tried using the range (range 1 6) and set $number_of_bitmap under MOUSE_X MOUSE_Y and show text $number_of_bitmap 200 200, but it only shows the number 1 despite there being 6 bitmaps. I would very much appreciate any advice. I have attached one of my codes.
task fer
show bitmap fixation
delay 2000
clear -1
show bitmap y_m_n_b_013 0 0 #shows a neutral face expression
delay 2000
clear -1
mouse show
draw off
show bitmap angry -270 -100 #top left bitmap1 of text 'angry'
show bitmap happy 0 -100 #top middle bitmap2 of text 'happy'
show bitmap sad 270 -100 #top right bitmap3 of text 'sad'
show bitmap disgust -270 150 #bottom left bitmap4 of text 'disgust'
show bitmap fear 0 150 #bottom middle bitmap5 of text 'fear'
show bitmap neutral 270 150 #bottom right bitmap6 of text 'neutral'
clear -1 -2 -3 -4 -5 -6
readmouse l 6 10000 #if bitmap neutral is selected, the response is correct
if STATUS == CORRECT
text color green
show text "CORRECT"
delay 1000
clear -1
else
text color red
show text "INCORRECT"
delay 2000
clear -1
fi
save RT STATUS BLOCKNUMBER BLOCKNAME