If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Windows 11 PsychoPy version (e.g. 2024.2.4 Py 3.8):
**Do you want it to also run online? Yes What are you trying to achieve?:
Hi,
I am trying to update my cognitive task such that, when someone presses a key slider response using number keys (1,2,3,4,5) to select the confidence rating, I want the number they selected to be highlighted and then they need to press space or enter to confirm their selection
I am therefore, struggling to find a way to highlight the number they have selected after their key press.
What did you try to make it work?:
So far I have set the key_resp_slider to not force end the routine and store the responses. I have added a second keyboard component to confirm the selection. I then created a circle component which im trying to get it to start after there is a key_slider response, to circle over the number that was selected.
I created a slider component using the PsychoPy defaults, expect that I do not store the rating and do not end the routine. I added a keyboard with ‘space’ as the only key. It starts when a rating has been given.
if not showKeyboard and slider.getMarkerPos():
showKeyboard = True
Then put showKeyboard as the condition.
However, before that try just having slider.getMarkerPos() as the condition. The error is probably because None isn’t getting translated but I don’t think you need it.