Hi everybody!
I'm working on an experiment which combines several different tasks and questionnaires into one long string. So far I have been putting this all together in the builder view, but now ran into a question which I haven't been able to google my way out of. So hopefully you can help me out!
What I am looking for is a block to put into the builder which tells psychopy to open a small program which is in the same folder as the test itself. Now to elaborate a bit more: one of the tasks I would like users to do is a relatively simple 'typing task' in which users have to duplicate a text. Now for this I have a very nifty little program which does this great, logs all errors, key strokes etc etc, but the big question is, can I have psychopy open this software and have psychopy keep running in the background (as at some point the typing test will close, and the user should continue with the psychopy tasks).
The software just starts using a .exe file and when the set time is over will close automatically so the only thing really needed is some sort of a start or launch command I guess.
Now as said I've already been googling for a bit and have come across things like
import os;
os.system('path')
Or
import subprocess
subprocess.call(['path'])
However, I have not been able to get this to work from the builder interface. It might well be that I'm just not putting them in the right boxes or something...Btw, I have been testing this by using a path to notepad.exe
So my questions:
1: Can Psychopy be used to launch another program 'over' it
2: If so, how should one go about this, and would it be possible from the builder view?
Hopefully someone has any experience with this!
Thanks in advance for reading/replying and thinking with me!
Regards,
Adrie