If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Windows 10
Standard Standalone? (y/n) y What are you trying to achieve?:
I have third-party software that will recognize physical key presses to create event markers. I thought I could just simulate a keypress (‘a’) for each relevant event.
What did you try to make it work?:
I put in in the first routine as “Begin experiment” for a test as:
I hoped I could use “responder.start()” alone in later loops in a code segment.
What specifically went wrong when you tried that?:
I did not see the key press in the external software. I verified that manually pressing ‘a’ still did cause the marker to appear.
I’ve installed the add-on monkeys. It is running without error. It is not appearing in the third-party (OpenSignals software by Bitalino). This may be on the third party at this point, but if you are aware of any methods to verify the keypress is being actuated, I would make sure of that first.
I’m guessing we can access monkey objects? I’m not finding much guidance.
Sorry – actually monkeys might not work for you, because it sends a response to a component.
The following component sends a space key press and release to the keyboard component called key_resp 100ms after the routine starts, lasting for 100ms (i.e. the key release is as 200ms.).
By default keyboard monkeys are disabled in run mode and work in piloting mode. However, to send a response to third party software might require sending a trigger to operate an external emulator. That’s outside my sphere of expertise, I’m afraid.