psychopy.org | Reference | Downloads | Github

Auto-run experiment upon launch

Is it possible for an experiment to auto-run upon launch? (i.e. no need for pressing the green ‘run’ button).

Thanks!

Hi, if using Windows you can create a Windows Batch file (.bat), when double clicked it will run the Python file generated by Builder. Create a Windows batch file, and add:

"C:\path_to_psychopy\python.exe" "C:\path_to_experiment\experiment.py"

Save the .bat file, and when you double click the bat file it will run the experiment.