﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Script for same/different task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 25 Sep 2026 21:55:53 GMT</lastBuildDate><ttl>20</ttl><item><title>Script for same/different task</title><link>https://forums.millisecond.com/Topic31694.aspx</link><description>I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!</description><pubDate>Wed, 30 Jun 2021 23:30:45 GMT</pubDate><dc:creator>John Clapper</dc:creator></item><item><title>RE: Script for same/different task</title><link>https://forums.millisecond.com/Topic31797.aspx</link><description>&lt;blockquote data-id="31796" class="if-quote-wrapper" unselectable="on" data-guid="1625095829204" id="if_insertedNode_1625095828036" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31796" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31796" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31796" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31796"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31795" class="if-quote-wrapper" unselectable="on" data-guid="1625095829204" id="if_insertedNode_1625094787961" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31795" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31795" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31795" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31795"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31794" class="if-quote-wrapper" unselectable="on" data-guid="1625095829204" id="if_insertedNode_1625094180144" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31794" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31794" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31794" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31794"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31793" class="if-quote-wrapper" unselectable="on" data-guid="1625095829204" id="if_insertedNode_1625092528513" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31793" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31793" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31793" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31793"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31696" class="if-quote-wrapper" unselectable="on" data-guid="1625095829204" id="if_insertedNode_1625089965908" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31696" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31696" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31696" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31696"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31695" class="if-quote-wrapper" unselectable="on" data-guid="1625095829204" id="if_insertedNode_1623187806406" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31695" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31695" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31695" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31695"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31694" class="if-quote-wrapper" unselectable="on" data-guid="1625095829204" id="if_insertedNode_1623183580500" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31694" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31694" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31694" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31694"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="31694"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;There is not, but you should be able to set this up from scratch easily. The gist goes like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;/ not = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = values.leftitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.itemnumbers.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// 10 images in this example, sampled without replacement&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ replace = false&lt;br/&gt;/ not = (values.not)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;pictureleftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;[/code]&lt;a class="if-quote-goto quote-link" href="#" data-id="31695"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thanks, I'll give it a try&lt;a class="if-quote-goto quote-link" href="#" data-id="31696"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hello,&lt;br/&gt;&lt;br/&gt;I am trying to figure out how to make a specific modification to this script.&lt;br/&gt;&lt;br/&gt;Right now, the script randomly selects two different objects (image files) to show on "different" trials.  However, I would like to be able to show specific pairs of objects in the different trials, rather than selecting them at random. What I imagine doing is passing a list of specific object (filename) pairs to to the different trial object to be used in constructing those trial.  These could be written directly into the program or read in from an input file.&lt;br/&gt;&lt;br/&gt;Is there a simple way to modify the current script that would allow me to do that?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;John Clapper&lt;a class="if-quote-goto quote-link" href="#" data-id="31793"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You'll need to be more specific re. which item you want paired which other item.&lt;a class="if-quote-goto quote-link" href="#" data-id="31794"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;That would vary with the specific experiment, but for the sake of this particular example imagine that we wanted to use the following item pairs on the 10 "different" trials:&lt;br/&gt;&lt;br/&gt;1,10&lt;br/&gt;2,9&lt;br/&gt;3,8&lt;br/&gt;4,7&lt;br/&gt;5,6&lt;br/&gt;6,5&lt;br/&gt;7,4&lt;br/&gt;8,3&lt;br/&gt;9,2&lt;br/&gt;10,1&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="31795"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Then that's simply:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.same.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.different1.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.different2.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list same&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;// item pairs for the 10 different trials&lt;br/&gt;&amp;lt;list different1&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list different2&amp;gt;&lt;br/&gt;/ items = (10,9,8,7,6,5,4,3,2,1)&lt;br/&gt;/ selectionmode = list.different1.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture leftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Generally see &lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/howtopairs.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/howtopairs.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/howtopairs.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="31796"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thanks, I'll try it out!</description><pubDate>Wed, 30 Jun 2021 23:30:45 GMT</pubDate><dc:creator>John Clapper</dc:creator></item><item><title>RE: Script for same/different task</title><link>https://forums.millisecond.com/Topic31796.aspx</link><description>&lt;blockquote data-id="31795" class="if-quote-wrapper" unselectable="on" data-guid="1625094788420" id="if_insertedNode_1625094787961" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31795" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31795" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31795" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31795"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31794" class="if-quote-wrapper" unselectable="on" data-guid="1625094788420" id="if_insertedNode_1625094180144" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31794" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31794" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31794" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31794"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31793" class="if-quote-wrapper" unselectable="on" data-guid="1625094788420" id="if_insertedNode_1625092528513" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31793" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31793" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31793" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31793"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31696" class="if-quote-wrapper" unselectable="on" data-guid="1625094788420" id="if_insertedNode_1625089965908" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31696" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31696" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31696" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31696"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31695" class="if-quote-wrapper" unselectable="on" data-guid="1625094788420" id="if_insertedNode_1623187806406" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31695" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31695" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31695" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31695"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31694" class="if-quote-wrapper" unselectable="on" data-guid="1625094788420" id="if_insertedNode_1623183580500" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31694" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31694" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31694" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31694"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="31694"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;There is not, but you should be able to set this up from scratch easily. The gist goes like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;/ not = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = values.leftitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.itemnumbers.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// 10 images in this example, sampled without replacement&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ replace = false&lt;br/&gt;/ not = (values.not)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;pictureleftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;[/code]&lt;a class="if-quote-goto quote-link" href="#" data-id="31695"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thanks, I'll give it a try&lt;a class="if-quote-goto quote-link" href="#" data-id="31696"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hello,&lt;br/&gt;&lt;br/&gt;I am trying to figure out how to make a specific modification to this script.&lt;br/&gt;&lt;br/&gt;Right now, the script randomly selects two different objects (image files) to show on "different" trials.  However, I would like to be able to show specific pairs of objects in the different trials, rather than selecting them at random. What I imagine doing is passing a list of specific object (filename) pairs to to the different trial object to be used in constructing those trial.  These could be written directly into the program or read in from an input file.&lt;br/&gt;&lt;br/&gt;Is there a simple way to modify the current script that would allow me to do that?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;John Clapper&lt;a class="if-quote-goto quote-link" href="#" data-id="31793"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You'll need to be more specific re. which item you want paired which other item.&lt;a class="if-quote-goto quote-link" href="#" data-id="31794"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;That would vary with the specific experiment, but for the sake of this particular example imagine that we wanted to use the following item pairs on the 10 "different" trials:&lt;br/&gt;&lt;br/&gt;1,10&lt;br/&gt;2,9&lt;br/&gt;3,8&lt;br/&gt;4,7&lt;br/&gt;5,6&lt;br/&gt;6,5&lt;br/&gt;7,4&lt;br/&gt;8,3&lt;br/&gt;9,2&lt;br/&gt;10,1&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="31795"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Then that's simply:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.same.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.different1.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.different2.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list same&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;// item pairs for the 10 different trials&lt;br/&gt;&amp;lt;list different1&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list different2&amp;gt;&lt;br/&gt;/ items = (10,9,8,7,6,5,4,3,2,1)&lt;br/&gt;/ selectionmode = list.different1.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture leftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Generally see &lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/howtopairs.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/howtopairs.htm&lt;/a&gt;</description><pubDate>Wed, 30 Jun 2021 23:14:25 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Script for same/different task</title><link>https://forums.millisecond.com/Topic31795.aspx</link><description>&lt;blockquote data-id="31794" class="if-quote-wrapper" unselectable="on" data-guid="1625094181206" id="if_insertedNode_1625094180144" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31794" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31794" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31794" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31794"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31793" class="if-quote-wrapper" unselectable="on" data-guid="1625094181206" id="if_insertedNode_1625092528513" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31793" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31793" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31793" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31793"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31696" class="if-quote-wrapper" unselectable="on" data-guid="1625094181206" id="if_insertedNode_1625089965908" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31696" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31696" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31696" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31696"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31695" class="if-quote-wrapper" unselectable="on" data-guid="1625094181206" id="if_insertedNode_1623187806406" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31695" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31695" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31695" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31695"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31694" class="if-quote-wrapper" unselectable="on" data-guid="1625094181206" id="if_insertedNode_1623183580500" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31694" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31694" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31694" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31694"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="31694"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;There is not, but you should be able to set this up from scratch easily. The gist goes like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;/ not = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = values.leftitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.itemnumbers.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// 10 images in this example, sampled without replacement&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ replace = false&lt;br/&gt;/ not = (values.not)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;pictureleftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;[/code]&lt;a class="if-quote-goto quote-link" href="#" data-id="31695"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thanks, I'll give it a try&lt;a class="if-quote-goto quote-link" href="#" data-id="31696"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hello,&lt;br/&gt;&lt;br/&gt;I am trying to figure out how to make a specific modification to this script.&lt;br/&gt;&lt;br/&gt;Right now, the script randomly selects two different objects (image files) to show on "different" trials.  However, I would like to be able to show specific pairs of objects in the different trials, rather than selecting them at random. What I imagine doing is passing a list of specific object (filename) pairs to to the different trial object to be used in constructing those trial.  These could be written directly into the program or read in from an input file.&lt;br/&gt;&lt;br/&gt;Is there a simple way to modify the current script that would allow me to do that?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;John Clapper&lt;a class="if-quote-goto quote-link" href="#" data-id="31793"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You'll need to be more specific re. which item you want paired which other item.&lt;a class="if-quote-goto quote-link" href="#" data-id="31794"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;That would vary with the specific experiment, but for the sake of this particular example imagine that we wanted to use the following item pairs on the 10 "different" trials:&lt;br/&gt;&lt;br/&gt;1,10&lt;br/&gt;2,9&lt;br/&gt;3,8&lt;br/&gt;4,7&lt;br/&gt;5,6&lt;br/&gt;6,5&lt;br/&gt;7,4&lt;br/&gt;8,3&lt;br/&gt;9,2&lt;br/&gt;10,1&lt;br/&gt;</description><pubDate>Wed, 30 Jun 2021 23:03:12 GMT</pubDate><dc:creator>John Clapper</dc:creator></item><item><title>RE: Script for same/different task</title><link>https://forums.millisecond.com/Topic31794.aspx</link><description>&lt;blockquote data-id="31793" class="if-quote-wrapper" unselectable="on" data-guid="1625092529902" id="if_insertedNode_1625092528513" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31793" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31793" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31793" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/30/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31793"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31696" class="if-quote-wrapper" unselectable="on" data-guid="1625092529902" id="if_insertedNode_1625089965908" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31696" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31696" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31696" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31696"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31695" class="if-quote-wrapper" unselectable="on" data-guid="1625092529902" id="if_insertedNode_1623187806406" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31695" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31695" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31695" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31695"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31694" class="if-quote-wrapper" unselectable="on" data-guid="1625092529902" id="if_insertedNode_1623183580500" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31694" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31694" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31694" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31694"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="31694"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;There is not, but you should be able to set this up from scratch easily. The gist goes like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;/ not = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = values.leftitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.itemnumbers.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// 10 images in this example, sampled without replacement&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ replace = false&lt;br/&gt;/ not = (values.not)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;pictureleftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;[/code]&lt;a class="if-quote-goto quote-link" href="#" data-id="31695"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thanks, I'll give it a try&lt;a class="if-quote-goto quote-link" href="#" data-id="31696"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hello,&lt;br/&gt;&lt;br/&gt;I am trying to figure out how to make a specific modification to this script.&lt;br/&gt;&lt;br/&gt;Right now, the script randomly selects two different objects (image files) to show on "different" trials.  However, I would like to be able to show specific pairs of objects in the different trials, rather than selecting them at random. What I imagine doing is passing a list of specific object (filename) pairs to to the different trial object to be used in constructing those trial.  These could be written directly into the program or read in from an input file.&lt;br/&gt;&lt;br/&gt;Is there a simple way to modify the current script that would allow me to do that?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;John Clapper&lt;a class="if-quote-goto quote-link" href="#" data-id="31793"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You'll need to be more specific re. which item you want paired which other item.</description><pubDate>Wed, 30 Jun 2021 22:36:17 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Script for same/different task</title><link>https://forums.millisecond.com/Topic31793.aspx</link><description>&lt;blockquote data-id="31696" class="if-quote-wrapper" unselectable="on" data-guid="1625089967240" id="if_insertedNode_1625089965908" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31696" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31696" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31696" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31696"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31695" class="if-quote-wrapper" unselectable="on" data-guid="1625089967240" id="if_insertedNode_1623187806406" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31695" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31695" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31695" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31695"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31694" class="if-quote-wrapper" unselectable="on" data-guid="1625089967240" id="if_insertedNode_1623183580500" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31694" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31694" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31694" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31694"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="31694"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;There is not, but you should be able to set this up from scratch easily. The gist goes like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;/ not = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = values.leftitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.itemnumbers.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// 10 images in this example, sampled without replacement&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ replace = false&lt;br/&gt;/ not = (values.not)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;pictureleftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;[/code]&lt;a class="if-quote-goto quote-link" href="#" data-id="31695"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thanks, I'll give it a try&lt;a class="if-quote-goto quote-link" href="#" data-id="31696"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hello,&lt;br/&gt;&lt;br/&gt;I am trying to figure out how to make a specific modification to this script.&lt;br/&gt;&lt;br/&gt;Right now, the script randomly selects two different objects (image files) to show on "different" trials.  However, I would like to be able to show specific pairs of objects in the different trials, rather than selecting them at random. What I imagine doing is passing a list of specific object (filename) pairs to to the different trial object to be used in constructing those trial.  These could be written directly into the program or read in from an input file.&lt;br/&gt;&lt;br/&gt;Is there a simple way to modify the current script that would allow me to do that?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;John Clapper</description><pubDate>Wed, 30 Jun 2021 21:53:55 GMT</pubDate><dc:creator>John Clapper</dc:creator></item><item><title>RE: Script for same/different task</title><link>https://forums.millisecond.com/Topic31696.aspx</link><description>&lt;blockquote data-id="31695" class="if-quote-wrapper" unselectable="on" data-guid="1623187807370" id="if_insertedNode_1623187806406" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31695" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31695" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31695" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31695"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31694" class="if-quote-wrapper" unselectable="on" data-guid="1623187807370" id="if_insertedNode_1623183580500" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31694" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31694" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31694" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31694"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="31694"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;There is not, but you should be able to set this up from scratch easily. The gist goes like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;/ not = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = values.leftitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.itemnumbers.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// 10 images in this example, sampled without replacement&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ replace = false&lt;br/&gt;/ not = (values.not)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;pictureleftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;[/code]&lt;a class="if-quote-goto quote-link" href="#" data-id="31695"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thanks, I'll give it a try</description><pubDate>Tue, 08 Jun 2021 21:30:28 GMT</pubDate><dc:creator>John Clapper</dc:creator></item><item><title>RE: Script for same/different task</title><link>https://forums.millisecond.com/Topic31695.aspx</link><description>&lt;blockquote data-id="31694" class="if-quote-wrapper" unselectable="on" data-guid="1623183581270" id="if_insertedNode_1623183580500" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31694" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31694" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31694" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;John Clapper - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31694"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I would like to run a simple same-different task, where participants see a stimulus (selected from a collection of image files) on the left side of the screen, followed 1000 msec later by a second stimulus (again selected from a collection of image files) on the right side of the screen.  The participant decides if they are the same or different by pressing either S or D, respectively.  The program records their response and the latency in msec on each trial.  Is there an existing script that does something like this?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="31694"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;There is not, but you should be able to set this up from scratch easily. The gist goes like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(same, different)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ leftitem = 1&lt;br/&gt;/ rightitem = 1&lt;br/&gt;/ not = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial same&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = values.leftitem;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("S")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial different&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.leftitem = list.itemnumbers.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.not = values.leftitem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rightitem = list.itemnumbers.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=leftpic; 1000=rightpic]&lt;br/&gt;/ validresponse = ("S", "D")&lt;br/&gt;/ correctresponse = ("D")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// 10 images in this example, sampled without replacement&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ replace = false&lt;br/&gt;/ not = (values.not)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;pictureleftpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.leftitem&lt;br/&gt;/ position = (20%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture rightpic&amp;gt;&lt;br/&gt;/ items = picitems&lt;br/&gt;/ select = values.rightitem&lt;br/&gt;/ position = (80%, 50%)&lt;br/&gt;/ size = (35%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item picitems&amp;gt;&lt;br/&gt;/ 1 = "image01.jpg"&lt;br/&gt;/ 2 = "image02.jpg"&lt;br/&gt;/ 3 = "image03.jpg"&lt;br/&gt;/ 4 = "image04.jpg"&lt;br/&gt;/ 5 = "image05.jpg"&lt;br/&gt;/ 6 = "image06.jpg"&lt;br/&gt;/ 7 = "image07.jpg"&lt;br/&gt;/ 8 = "image08.jpg"&lt;br/&gt;/ 9 = "image09.jpg"&lt;br/&gt;/ 10 = "image10.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;[/code]</description><pubDate>Tue, 08 Jun 2021 20:34:40 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>