Logging Multiple cursor_roi to same var & randomize image position
I am creating an image recognition memory task, where participants are presented with 12 images (targets) to memorize (with simultaneous music) (coroutine: sketchpad and sampler). Immediately after the encoding phase, the initial 12 target images are shown with additional 12 distractors on a sketchpad and participants are asked to click the images they have memorized. (Sidenote: Participants Gaze is recorded during the encoding as well)
Now I have two problems arising for which I cannot find the solution from the forum or the tutorials. First I need to be able to log the names of all the clicked images. I managed to collect one image name in the cursor_roi variable. I have seen in a forum question, that it is necessary to have a mouse response item for each click, however, I only have one cursr_roi which only collects the name of one clicked object regardless of the amount of mouse_response items I use, so every entry is replaced by the latest cursor_roi entry. Further I do not want to advance to the next trial after one or more clicks rather by button press or keypress, right now it advances after one or more clicks (depending on the amount of mouse response items) Would anyone have an idea to log multiple clicked items from a sketchpad? All elements are named (e.g [target_1]) I have tried different ways using forms and image buttons, mousetrap and normal mouse response, but I feel I have overseen a simple solution.
The second problem is that I need to randomize the image positions in both the encoding and recall presentation. Shuffle_horiz for the individual columns does not work, as I then lose track of which image was a target and a distractor, or I can only shuffle within the distractors or the targets, but then distractor and target placeholders still remain at their place and it is not completely random. I have tried the python inline script from the visual search tutorial, using xy_grid insted of xy_circle, but that does not seem to work. When I got it running it presented all images at origin (0,0).
Would someone have an idea or experience with a similar task? Thank you in advance for any advice!
Attached is the structure tree of my setup. I am running Open Sesame 3.3.10.