Millisecond Forums

Is it possible to save screenshots (i.e. use the screencapture attribute) when using a web based script?

https://forums.millisecond.com/Topic20928.aspx

By lparrington - 3/2/2017

I have a script that frequently uses the screencapture attribute so that we can get a visual representation of what decision was made on a particular trial. Works a treat on Inquisit lab and helps provide some really helpful visualisation of some of the type of data we collect. The script also runs well on Inquisit web, but as far as I can tell, there is no way to save the images/screen capture like we can with Lab.
While we can get the cursor location and plot this out on our images if needed using other software, it would be way easier if there was a way to capture the image with the web script like we can with Inquisit lab. Is there any possible way of doing this?

Thanks :)

By Dave - 3/2/2017

lparrington - Thursday, March 2, 2017
I have a script that frequently uses the screencapture attribute so that we can get a visual representation of what decision was made on a particular trial. Works a treat on Inquisit lab and helps provide some really helpful visualisation of some of the type of data we collect. The script also runs well on Inquisit web, but as far as I can tell, there is no way to save the images/screen capture like we can with Lab.
While we can get the cursor location and plot this out on our images if needed using other software, it would be way easier if there was a way to capture the image with the web script like we can with Inquisit lab. Is there any possible way of doing this?

Thanks :)


No, at present, it is not possible to gather screen captures over the web. The main reason and stumbling block is that screen captures will get quite large, especially if there are many (e.g. for dozens or hundreds of trials per participant); this can quickly result in dozens or even hundreds of MB of data that would have to be transferred from a single participant's computer to the server, which would be quite lengthy and error prone for people on a relatively slow and/or unreliable internet connection.
By lparrington - 3/3/2017

Dave - Thursday, March 2, 2017
lparrington - Thursday, March 2, 2017
I have a script that frequently uses the screencapture attribute so that we can get a visual representation of what decision was made on a particular trial. Works a treat on Inquisit lab and helps provide some really helpful visualisation of some of the type of data we collect. The script also runs well on Inquisit web, but as far as I can tell, there is no way to save the images/screen capture like we can with Lab.
While we can get the cursor location and plot this out on our images if needed using other software, it would be way easier if there was a way to capture the image with the web script like we can with Inquisit lab. Is there any possible way of doing this?

Thanks :)


No, at present, it is not possible to gather screen captures over the web. The main reason and stumbling block is that screen captures will get quite large, especially if there are many (e.g. for dozens or hundreds of trials per participant); this can quickly result in dozens or even hundreds of MB of data that would have to be transferred from a single participant's computer to the server, which would be quite lengthy and error prone for people on a relatively slow and/or unreliable internet connection.

Thanks for the quick response. I thought that woulds be the case, and one of the concerns when thinking about putting it online. At least this will force us to streamline our post processing!
Cheers 
By Nina - 4/16/2017

Can you tell me how screencapture works for inquisit lab? :) 
By Dave - 4/17/2017

Nina - Sunday, April 16, 2017
Can you tell me how screencapture works for inquisit lab? :) 

It's controlled via the <trial> element's /screencapture attribute. You simply set it to true as in

<trial example>
...
/ screencapture = true
</trial>

and Inquisit Lab will produce an image of the trial's final frame in a directory called "screencaptures" located alongside the script.
<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
/ screencapture = true
</trial>

<text mytext>
/ items = ("A", "B", "C", "D")
</text>

<block myblock>
/ trials = [1-4 = mytrial]
</block>