got a new solution to this - but worth asking @Michael or @jon if it’s legit.
At the end of each experimental routine close the window and redefine the window as fullscr - false.
So in your experimental routine have a code component. In the end routine tab have:
import webbrowser
win.close()
win = visual.Window(
size=(1440, 900), fullscr=False, screen=0,
allowGUI=True, allowStencil=False,
monitor='testMonitor', color='black', colorSpace='rgb',
blendMode='avg', useFBO=True,
units='norm')
survey_text.win = win
webbrowser.open("https://www.yourwebsitehere.com')
then have a routine called survey or something from which the browser is launched. Include a keyboard component with end routine set to true and a text component named survey_text
saying ‘press space to continue’. You’ll also want a code component.
What will happen now is when your experimental condition finishes, win will be replaced with the new non-fullscreen win and the browser will open.
in the code component end routine tab have the following:
win = visual.Window(
size=(1440, 900), fullscr=True, screen=0,
allowGUI=False, allowStencil=False,
monitor='testMonitor', color='black', colorSpace='rgb',
blendMode='avg', useFBO=True,
units='norm')
#Reinitialise all visual stimuli from your experimental blocks so they know which window to send the data to
visualStim1.win = win
visualStim2.win = win
#replace visualStim1 etc with the names of any image, movie or text stim in the next routine.
I’m only bashing this out quickly because I have to be somewhere but have a play and see what happens. This way you get the best of both worlds.
BW
Oli