OS (e.g. Win10): Windows 11 Pro
PsychoPy version (e.g. 1.84.x): v2023.1.2
Standard Standalone? : Y
What are you trying to achieve?:
I am trying to add button components to each routine in my experiment so that it can be run on touchscreen phones.
I would like people to be able to press:
- NEXT after the information page
=> then move onto… - YES or NO for consent
=> then move onto… - YES or NO to confirm they are 18 or over
or a goodbye page if they said no to consent
=> then move onto… - NUMBERS for their age
(this should accept multiple button presses, saved in order, without ending the routine)
and NEXT to move onto the next question
or a goodbye page if they said no to being 18 or over
=> then move onto… - YES or NO for whether they have elder siblings
=> then move onto… - YES or NO for whether English is their first language
=> then move onto… - NUMBERS for how many languages they speak in total
(this should accept multiple button presses, saved in order, without ending the routine)
and NEXT to move onto the next question
=> then move onto… - NEXT after the introduction to the trials
=> then move onto… - REAL or NOT REAL buttons for the word classification task with 52 words
(the word list is in a separate excel conditions file - it should have a REAL vs NOT REAL button for
each word and when answered it should move to the next word)
=> then move onto… - SUBMIT after the debrief
What did you try to make it work?:
I tried to add a button component but the information page provided by PsychoPy doesn’t give a step by step on adding and coding for buttons. I do not know what callback function to add for the code, and I cannot find PsychoPy related tutorials.
I also do not know how to set the buttons to work for the NUMBERS or for the REAL vs NOT REAL buttons on word trials.
I then tried to add a textbox and mouse component but I did not understand how to add the code so it would not appear when I ran the experiment - regardless, a button component would be ideal as it is a shortcut.
If anyone is able to advise me on adding these buttons, it would be very helpful