I am working on a change detection task where participants should indicate whether they notice a difference between two images by pressing “F” or “J”. I have used the selector element to randomize where the images appear. An example of the code is below. This is basically working as intended. The issue is that this code leads PCIbex to log the name of the image associated with the button press–(eg. FileDb1 or FileDb2). The information I really need here is whether the participant pressed “F” or “J”. I have not found a way to make this change.
My naive intuition is that this should be possible because PCIbex must be identifying which key is being pressed and when in order to report which image was “selected”. Any guidance you can offer regarding this issue would be greatly appreciated.
Since your code associates F with the image placed where “File1IDb1” originates, and J with the image placed where “File2IDb1” originates, and since log reports the result of shuffle in the Comments column, you can technically retrieve the key that was pressed from the results file. For example, from this line I can determine that I pressed J, since I selected the option that is listed second in the last column (File1IDb1):