The full path to file created by the last screen capture done for this element.
<block> <expt> <likert> <openended> <sliderTrial> <survey> <surveyPage> <trial>
event.name.lastScreenCapturePath
Read Only
string
This property is useful in presenting recorded screenCaptures back to participants during the same script session.
If the element is a block, this returns the lastscreenCcapturepath given on the most recent trial that was run within the block. If the element is a trial, this returns the lastscreenCcapturepath given the last time the trial was run.
The following displays the value of lastScreenCapturePath in a text stimulus:
<text myText>
/ items= ("lastScreenCapturepath = <% trial.myTrial.lastScreenCapturePath %>")
</text>
The following displays the value of lastscreenCapturePath in an instruction page:
<page myPage>
lastScreenCapturepath = <% trial.myTrial.lastScreenCapturepath %>
</page>
The following code shows a) how to store the full path for a screencapture into 'item.currentProposedSolution' and b) how to use the stored screenCapture to present it back to the participant during runtime.
<item currentProposedSolution>
</item>
<picture proposedSolution>
/ items = item.currentProposedSolution
/ scale = 0.25
</picture>
<trial solutionDrawing>
/ inputDevice = mouse
/ draw = pencil
/ onTrialBegin = {
item.currentProposedSolution.clearItems();
}
/ stimulusFrames = [1 = continueLabel]
/ validResponse = (continueLabel)
/ screenCapture = true
/ onTrialEnd = {
item.currentProposedSolution.appendItem(this.lastScreenCapturePath);
}
/ branch = {
return trial.presentSolution;
}
</trial>
<trial presentSolution>
/ inputDevice = mouse
/ stimulusFrames = [1 = clearScreen, proposedSolution] //presents the recently taken screenshot
/ validResponse = (continueLabel)
</trial>