﻿<?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  » Passing values from one script to another</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 15 Apr 2026 21:39:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36783.aspx</link><description>&lt;blockquote data-id="36782" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1734444254028"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36782" 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="36782" 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="36782" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/17/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36782"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36776" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1734442925744"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36776" 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="36776" 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="36776" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/16/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36776"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36775" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1734380862946"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36775" 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="36775" 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="36775" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/16/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36775"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36757" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36757" 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="36757" 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="36757" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36757"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36756" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1733428461732"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36756" 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="36756" 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="36756" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36756"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36754" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1733422250901"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36754" 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="36754" 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="36754" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36754"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36753" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1733417419310"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36753" 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="36753" 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="36753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1734444254600" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36753"&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;Apologies for not including all the files. Rookie mistake.&lt;br/&gt;&lt;br/&gt;I understand that the item number is what need to gets passed, but I'm having trouble figuring out how to pass it to the correct element in the second script. I'm unable to provide the full materials in a zip folder because I'm told it will put me over my size limit, but &lt;a href="https://drive.google.com/drive/folders/1Bzk7jMrgzsclKBkghvcnMCoDptfVB7hj?usp=sharing" id="if_insertedNode_1733418212871"&gt;here is a link&lt;/a&gt; to the materials. But here are the parts that I think are most important as well:&lt;br/&gt;&lt;br/&gt;Here's the code from the Batch file:&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch mere_exposure&amp;gt;&lt;br/&gt;/ file = "Mere Exposure 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ file = "SCIAT 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ onscriptend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(batch.mere_exposure.currentscript == "Mere Exposure 30 vs. 0 exposures v1.iqx")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parameters.target_character = values.target_character_mere_exposure&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;In the "Mere Exposure 30 vs. 0 exposures" file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target_arrowleft&amp;gt;&lt;br/&gt;/ pretrialpause = 1500&lt;br/&gt;/ validresponse = ("I", "E")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulustimes = [1=fixation; 801=forwardmask; 831=target; 846=backwardmask; 876=blank; 877=leftarrow]&lt;br/&gt;/ ontrialend = [item.presentedtarget.appenditem(picture.target.currentitem);]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_mere_exposure = picture.target.currentitemnumber&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And then, in the SCIAT file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_iat = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt a&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionOrder = "c-ic";&lt;br/&gt;]&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_iat = parameters.target_character;&lt;br/&gt;]&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/groups = (1 of 2)&lt;br/&gt;/ blocks = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1=practice_compatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2=compatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3=compatibletest;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4=practice_incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5=incompatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6=incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7=summary;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36754"&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;It's simple:&lt;br/&gt;You pick an item number from a list or counter onexptbegin in the first script and store it in a variable. All the stimulus elements use that variable for item selection.&lt;br/&gt;Via the batch logic, you then just pass that item number to the 2nd script, via the parameter. All the stimulus elements in the 2nd scrpt use the parameter for item selection.&lt;br/&gt;&lt;br/&gt;Attached are the changed files (nothing else). Work through these until you understand how they work together. &lt;a class="if-quote-goto quote-link" href="#" data-id="36756"&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;Terrific! Thanks much!&lt;a class="if-quote-goto quote-link" href="#" data-id="36757"&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;Thanks again for your help with this so far. I have a much clearer understading of how to make this work.&lt;br/&gt;I do have what I hope is one final question: I've now confirmed that things work correctly when I use the attached batch file with Inquisit Lab. The parameters are correctly passed between the scripts. But, when I test everything in Inquisit web, it appears that the parameters are not being passed correctly and so I end up with one stimulus in the first script, then a different one in the second script, and yet a different one in the third script. Any ideas about why this might be happening? I attached just the batch file itself because I *think* that's all you'll need to look at but please let me know if you'd like me to provide the files for the other scripts as well. THANK YOU!!!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36775"&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;Provide the link to the online version then&lt;a class="if-quote-goto quote-link" href="#" data-id="36776"&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;Sure. here's the link to the web version:&amp;nbsp;&lt;a href="https://mili2nd.co/jdic"&gt;&lt;a href="https://mili2nd.co/jdic"&gt;https://mili2nd.co/jdic&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;And, in case it's useful,&amp;nbsp; &lt;a href="https://drive.google.com/drive/folders/1F_iCh9110CV9v7ZYM4LOQy5qlN2-y0Ge?usp=sharing" id="if_insertedNode_1734442962822"&gt;here's a link&lt;/a&gt; to the individual study files.&lt;br/&gt;Thanks for taking a look!&lt;a class="if-quote-goto quote-link" href="#" data-id="36782"&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;The files you have online don't work in Inquisit Lab either, and the reason is that you're not using the passed item number in various places where you should. In the places where you implemented it correctly, the correct item -- as passed by the first script -- is shown.&lt;br/&gt;&lt;br/&gt;Specifically, you're not showing the correct image on the rating survey pages and in the IAT instructions. That is what you need to fix.&lt;br/&gt;&lt;br/&gt;In the pre_iat script, for example, you have&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;image targetA&amp;gt;&lt;br/&gt;/ items = targetA&lt;br/&gt;/ imagesize = (44.5%,44.5%)&lt;br/&gt;/ position = (35%, 3%)&lt;br/&gt;&amp;lt;/image&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;which will just show a random item from &amp;lt;item targetA&amp;gt;. It ought to be&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;image targetA&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%item.targetA.item(parameters.target_character)%&amp;gt;")&lt;br/&gt;/ imagesize = (44.5%,44.5%)&lt;br/&gt;/ position = (35%, 3%)&lt;br/&gt;&amp;lt;/image&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;if you want to show the passed item.&lt;br/&gt;&lt;br/&gt;For the instructions, refer to the fixed files I provided you upthread, specifically the changes to the HTML page.&lt;br/&gt;</description><pubDate>Tue, 17 Dec 2024 14:16:06 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36747.aspx</link><description>I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;</description><pubDate>Tue, 17 Dec 2024 14:09:00 GMT</pubDate><dc:creator>satchmo496</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36782.aspx</link><description>&lt;blockquote data-id="36776" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1734442925744"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36776" 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="36776" 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="36776" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/16/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36776"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36775" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1734380862946"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36775" 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="36775" 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="36775" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/16/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36775"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36757" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36757" 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="36757" 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="36757" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36757"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36756" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1733428461732"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36756" 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="36756" 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="36756" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36756"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36754" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1733422250901"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36754" 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="36754" 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="36754" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36754"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36753" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1733417419310"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36753" 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="36753" 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="36753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1734442926713" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36753"&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;Apologies for not including all the files. Rookie mistake.&lt;br/&gt;&lt;br/&gt;I understand that the item number is what need to gets passed, but I'm having trouble figuring out how to pass it to the correct element in the second script. I'm unable to provide the full materials in a zip folder because I'm told it will put me over my size limit, but &lt;a href="https://drive.google.com/drive/folders/1Bzk7jMrgzsclKBkghvcnMCoDptfVB7hj?usp=sharing" id="if_insertedNode_1733418212871"&gt;here is a link&lt;/a&gt; to the materials. But here are the parts that I think are most important as well:&lt;br/&gt;&lt;br/&gt;Here's the code from the Batch file:&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch mere_exposure&amp;gt;&lt;br/&gt;/ file = "Mere Exposure 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ file = "SCIAT 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ onscriptend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(batch.mere_exposure.currentscript == "Mere Exposure 30 vs. 0 exposures v1.iqx")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parameters.target_character = values.target_character_mere_exposure&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;In the "Mere Exposure 30 vs. 0 exposures" file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target_arrowleft&amp;gt;&lt;br/&gt;/ pretrialpause = 1500&lt;br/&gt;/ validresponse = ("I", "E")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulustimes = [1=fixation; 801=forwardmask; 831=target; 846=backwardmask; 876=blank; 877=leftarrow]&lt;br/&gt;/ ontrialend = [item.presentedtarget.appenditem(picture.target.currentitem);]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_mere_exposure = picture.target.currentitemnumber&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And then, in the SCIAT file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_iat = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt a&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionOrder = "c-ic";&lt;br/&gt;]&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_iat = parameters.target_character;&lt;br/&gt;]&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/groups = (1 of 2)&lt;br/&gt;/ blocks = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1=practice_compatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2=compatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3=compatibletest;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4=practice_incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5=incompatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6=incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7=summary;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36754"&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;It's simple:&lt;br/&gt;You pick an item number from a list or counter onexptbegin in the first script and store it in a variable. All the stimulus elements use that variable for item selection.&lt;br/&gt;Via the batch logic, you then just pass that item number to the 2nd script, via the parameter. All the stimulus elements in the 2nd scrpt use the parameter for item selection.&lt;br/&gt;&lt;br/&gt;Attached are the changed files (nothing else). Work through these until you understand how they work together. &lt;a class="if-quote-goto quote-link" href="#" data-id="36756"&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;Terrific! Thanks much!&lt;a class="if-quote-goto quote-link" href="#" data-id="36757"&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;Thanks again for your help with this so far. I have a much clearer understading of how to make this work.&lt;br/&gt;I do have what I hope is one final question: I've now confirmed that things work correctly when I use the attached batch file with Inquisit Lab. The parameters are correctly passed between the scripts. But, when I test everything in Inquisit web, it appears that the parameters are not being passed correctly and so I end up with one stimulus in the first script, then a different one in the second script, and yet a different one in the third script. Any ideas about why this might be happening? I attached just the batch file itself because I *think* that's all you'll need to look at but please let me know if you'd like me to provide the files for the other scripts as well. THANK YOU!!!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36775"&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;Provide the link to the online version then&lt;a class="if-quote-goto quote-link" href="#" data-id="36776"&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;Sure. here's the link to the web version:&amp;nbsp;&lt;a href="https://mili2nd.co/jdic"&gt;https://mili2nd.co/jdic&lt;/a&gt;&lt;br/&gt;And, in case it's useful,&amp;nbsp; &lt;a href="https://drive.google.com/drive/folders/1F_iCh9110CV9v7ZYM4LOQy5qlN2-y0Ge?usp=sharing" id="if_insertedNode_1734442962822"&gt;here's a link&lt;/a&gt; to the individual study files.&lt;br/&gt;Thanks for taking a look!</description><pubDate>Tue, 17 Dec 2024 13:42:58 GMT</pubDate><dc:creator>satchmo496</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36776.aspx</link><description>&lt;blockquote data-id="36775" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false" id="if_insertedNode_1734380862946"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36775" 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="36775" 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="36775" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/16/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36775"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36757" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36757" 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="36757" 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="36757" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36757"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36756" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false" id="if_insertedNode_1733428461732"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36756" 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="36756" 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="36756" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36756"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36754" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false" id="if_insertedNode_1733422250901"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36754" 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="36754" 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="36754" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36754"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36753" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false" id="if_insertedNode_1733417419310"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36753" 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="36753" 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="36753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1734380864707" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36753"&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;Apologies for not including all the files. Rookie mistake.&lt;br/&gt;&lt;br/&gt;I understand that the item number is what need to gets passed, but I'm having trouble figuring out how to pass it to the correct element in the second script. I'm unable to provide the full materials in a zip folder because I'm told it will put me over my size limit, but &lt;a href="https://drive.google.com/drive/folders/1Bzk7jMrgzsclKBkghvcnMCoDptfVB7hj?usp=sharing" id="if_insertedNode_1733418212871"&gt;here is a link&lt;/a&gt; to the materials. But here are the parts that I think are most important as well:&lt;br/&gt;&lt;br/&gt;Here's the code from the Batch file:&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch mere_exposure&amp;gt;&lt;br/&gt;/ file = "Mere Exposure 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ file = "SCIAT 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ onscriptend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(batch.mere_exposure.currentscript == "Mere Exposure 30 vs. 0 exposures v1.iqx")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parameters.target_character = values.target_character_mere_exposure&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;In the "Mere Exposure 30 vs. 0 exposures" file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target_arrowleft&amp;gt;&lt;br/&gt;/ pretrialpause = 1500&lt;br/&gt;/ validresponse = ("I", "E")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulustimes = [1=fixation; 801=forwardmask; 831=target; 846=backwardmask; 876=blank; 877=leftarrow]&lt;br/&gt;/ ontrialend = [item.presentedtarget.appenditem(picture.target.currentitem);]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_mere_exposure = picture.target.currentitemnumber&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And then, in the SCIAT file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_iat = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt a&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionOrder = "c-ic";&lt;br/&gt;]&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_iat = parameters.target_character;&lt;br/&gt;]&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/groups = (1 of 2)&lt;br/&gt;/ blocks = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1=practice_compatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2=compatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3=compatibletest;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4=practice_incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5=incompatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6=incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7=summary;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36754"&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;It's simple:&lt;br/&gt;You pick an item number from a list or counter onexptbegin in the first script and store it in a variable. All the stimulus elements use that variable for item selection.&lt;br/&gt;Via the batch logic, you then just pass that item number to the 2nd script, via the parameter. All the stimulus elements in the 2nd scrpt use the parameter for item selection.&lt;br/&gt;&lt;br/&gt;Attached are the changed files (nothing else). Work through these until you understand how they work together. &lt;a class="if-quote-goto quote-link" href="#" data-id="36756"&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;Terrific! Thanks much!&lt;a class="if-quote-goto quote-link" href="#" data-id="36757"&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;Thanks again for your help with this so far. I have a much clearer understading of how to make this work.&lt;br/&gt;I do have what I hope is one final question: I've now confirmed that things work correctly when I use the attached batch file with Inquisit Lab. The parameters are correctly passed between the scripts. But, when I test everything in Inquisit web, it appears that the parameters are not being passed correctly and so I end up with one stimulus in the first script, then a different one in the second script, and yet a different one in the third script. Any ideas about why this might be happening? I attached just the batch file itself because I *think* that's all you'll need to look at but please let me know if you'd like me to provide the files for the other scripts as well. THANK YOU!!!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36775"&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;Provide the link to the online version then</description><pubDate>Mon, 16 Dec 2024 20:28:05 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36775.aspx</link><description>&lt;blockquote data-id="36757" class="if-quote-wrapper" unselectable="on"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36757" 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="36757" 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="36757" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36757"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36756" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733428461732"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36756" 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="36756" 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="36756" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36756"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36754" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733422250901"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36754" 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="36754" 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="36754" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36754"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36753" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733417419310"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36753" 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="36753" 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="36753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36753"&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;Apologies for not including all the files. Rookie mistake.&lt;br/&gt;&lt;br/&gt;I understand that the item number is what need to gets passed, but I'm having trouble figuring out how to pass it to the correct element in the second script. I'm unable to provide the full materials in a zip folder because I'm told it will put me over my size limit, but &lt;a href="https://drive.google.com/drive/folders/1Bzk7jMrgzsclKBkghvcnMCoDptfVB7hj?usp=sharing" id="if_insertedNode_1733418212871"&gt;here is a link&lt;/a&gt; to the materials. But here are the parts that I think are most important as well:&lt;br/&gt;&lt;br/&gt;Here's the code from the Batch file:&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch mere_exposure&amp;gt;&lt;br/&gt;/ file = "Mere Exposure 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ file = "SCIAT 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ onscriptend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(batch.mere_exposure.currentscript == "Mere Exposure 30 vs. 0 exposures v1.iqx")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parameters.target_character = values.target_character_mere_exposure&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;In the "Mere Exposure 30 vs. 0 exposures" file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target_arrowleft&amp;gt;&lt;br/&gt;/ pretrialpause = 1500&lt;br/&gt;/ validresponse = ("I", "E")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulustimes = [1=fixation; 801=forwardmask; 831=target; 846=backwardmask; 876=blank; 877=leftarrow]&lt;br/&gt;/ ontrialend = [item.presentedtarget.appenditem(picture.target.currentitem);]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_mere_exposure = picture.target.currentitemnumber&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And then, in the SCIAT file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_iat = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt a&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionOrder = "c-ic";&lt;br/&gt;]&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_iat = parameters.target_character;&lt;br/&gt;]&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/groups = (1 of 2)&lt;br/&gt;/ blocks = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1=practice_compatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2=compatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3=compatibletest;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4=practice_incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5=incompatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6=incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7=summary;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36754"&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;It's simple:&lt;br/&gt;You pick an item number from a list or counter onexptbegin in the first script and store it in a variable. All the stimulus elements use that variable for item selection.&lt;br/&gt;Via the batch logic, you then just pass that item number to the 2nd script, via the parameter. All the stimulus elements in the 2nd scrpt use the parameter for item selection.&lt;br/&gt;&lt;br/&gt;Attached are the changed files (nothing else). Work through these until you understand how they work together. &lt;a class="if-quote-goto quote-link" href="#" data-id="36756"&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;Terrific! Thanks much!&lt;a class="if-quote-goto quote-link" href="#" data-id="36757"&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;Thanks again for your help with this so far. I have a much clearer understading of how to make this work.&lt;br/&gt;I do have what I hope is one final question: I've now confirmed that things work correctly when I use the attached batch file with Inquisit Lab. The parameters are correctly passed between the scripts. But, when I test everything in Inquisit web, it appears that the parameters are not being passed correctly and so I end up with one stimulus in the first script, then a different one in the second script, and yet a different one in the third script. Any ideas about why this might be happening? I attached just the batch file itself because I *think* that's all you'll need to look at but please let me know if you'd like me to provide the files for the other scripts as well. THANK YOU!!!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 16 Dec 2024 20:12:11 GMT</pubDate><dc:creator>satchmo496</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36756.aspx</link><description>&lt;blockquote data-id="36754" class="if-quote-wrapper" unselectable="on" data-guid="1733422252365" contenteditable="false" id="if_insertedNode_1733422250901"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36754" 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="36754" 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="36754" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36754"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36753" class="if-quote-wrapper" unselectable="on" data-guid="1733422252365" contenteditable="false" id="if_insertedNode_1733417419310"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36753" 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="36753" 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="36753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1733422252365" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1733422252365" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1733422252365" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36753"&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;Apologies for not including all the files. Rookie mistake.&lt;br/&gt;&lt;br/&gt;I understand that the item number is what need to gets passed, but I'm having trouble figuring out how to pass it to the correct element in the second script. I'm unable to provide the full materials in a zip folder because I'm told it will put me over my size limit, but &lt;a href="https://drive.google.com/drive/folders/1Bzk7jMrgzsclKBkghvcnMCoDptfVB7hj?usp=sharing" id="if_insertedNode_1733418212871"&gt;here is a link&lt;/a&gt; to the materials. But here are the parts that I think are most important as well:&lt;br/&gt;&lt;br/&gt;Here's the code from the Batch file:&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch mere_exposure&amp;gt;&lt;br/&gt;/ file = "Mere Exposure 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ file = "SCIAT 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ onscriptend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(batch.mere_exposure.currentscript == "Mere Exposure 30 vs. 0 exposures v1.iqx")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parameters.target_character = values.target_character_mere_exposure&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;In the "Mere Exposure 30 vs. 0 exposures" file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target_arrowleft&amp;gt;&lt;br/&gt;/ pretrialpause = 1500&lt;br/&gt;/ validresponse = ("I", "E")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulustimes = [1=fixation; 801=forwardmask; 831=target; 846=backwardmask; 876=blank; 877=leftarrow]&lt;br/&gt;/ ontrialend = [item.presentedtarget.appenditem(picture.target.currentitem);]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_mere_exposure = picture.target.currentitemnumber&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And then, in the SCIAT file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_iat = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt a&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionOrder = "c-ic";&lt;br/&gt;]&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_iat = parameters.target_character;&lt;br/&gt;]&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/groups = (1 of 2)&lt;br/&gt;/ blocks = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1=practice_compatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2=compatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3=compatibletest;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4=practice_incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5=incompatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6=incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7=summary;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36754"&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;It's simple:&lt;br/&gt;You pick an item number from a list or counter onexptbegin in the 1st script and store it in a variable. All the stimulus elements use that variable for item selection.&lt;br/&gt;By way of a little batch logic, you then just pass that item number to the 2nd script, via the parameter. All the stimulus elements in the 2nd script use the parameter for item selection.&lt;br/&gt;&lt;br/&gt;Attached are the changed files (nothing else). Work through these until you understand how they work together.</description><pubDate>Thu, 05 Dec 2024 23:48:42 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36757.aspx</link><description>&lt;blockquote data-id="36756" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733428461732"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36756" 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="36756" 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="36756" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36756"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36754" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733422250901"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36754" 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="36754" 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="36754" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36754"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36753" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733417419310"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36753" 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="36753" 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="36753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1733428462429" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36753"&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;Apologies for not including all the files. Rookie mistake.&lt;br/&gt;&lt;br/&gt;I understand that the item number is what need to gets passed, but I'm having trouble figuring out how to pass it to the correct element in the second script. I'm unable to provide the full materials in a zip folder because I'm told it will put me over my size limit, but &lt;a href="https://drive.google.com/drive/folders/1Bzk7jMrgzsclKBkghvcnMCoDptfVB7hj?usp=sharing" id="if_insertedNode_1733418212871"&gt;here is a link&lt;/a&gt; to the materials. But here are the parts that I think are most important as well:&lt;br/&gt;&lt;br/&gt;Here's the code from the Batch file:&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch mere_exposure&amp;gt;&lt;br/&gt;/ file = "Mere Exposure 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ file = "SCIAT 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ onscriptend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(batch.mere_exposure.currentscript == "Mere Exposure 30 vs. 0 exposures v1.iqx")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parameters.target_character = values.target_character_mere_exposure&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;In the "Mere Exposure 30 vs. 0 exposures" file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target_arrowleft&amp;gt;&lt;br/&gt;/ pretrialpause = 1500&lt;br/&gt;/ validresponse = ("I", "E")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulustimes = [1=fixation; 801=forwardmask; 831=target; 846=backwardmask; 876=blank; 877=leftarrow]&lt;br/&gt;/ ontrialend = [item.presentedtarget.appenditem(picture.target.currentitem);]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_mere_exposure = picture.target.currentitemnumber&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And then, in the SCIAT file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_iat = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt a&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionOrder = "c-ic";&lt;br/&gt;]&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_iat = parameters.target_character;&lt;br/&gt;]&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/groups = (1 of 2)&lt;br/&gt;/ blocks = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1=practice_compatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2=compatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3=compatibletest;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4=practice_incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5=incompatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6=incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7=summary;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36754"&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;It's simple:&lt;br/&gt;You pick an item number from a list or counter onexptbegin in the first script and store it in a variable. All the stimulus elements use that variable for item selection.&lt;br/&gt;Via the batch logic, you then just pass that item number to the 2nd script, via the parameter. All the stimulus elements in the 2nd scrpt use the parameter for item selection.&lt;br/&gt;&lt;br/&gt;Attached are the changed files (nothing else). Work through these until you understand how they work together. &lt;a class="if-quote-goto quote-link" href="#" data-id="36756"&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;Terrific! Thanks much!</description><pubDate>Thu, 05 Dec 2024 19:54:33 GMT</pubDate><dc:creator>satchmo496</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36754.aspx</link><description>&lt;blockquote data-id="36753" class="if-quote-wrapper" unselectable="on" data-guid="1733417420325" contenteditable="false" id="if_insertedNode_1733417419310"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36753" 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="36753" 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="36753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1733417420325" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1733417420325" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1733417420325" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36753"&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;Apologies for not including all the files. Rookie mistake.&lt;br/&gt;&lt;br/&gt;I understand that the item number is what need to gets passed, but I'm having trouble figuring out how to pass it to the correct element in the second script. I'm unable to provide the full materials in a zip folder because I'm told it will put me over my size limit, but &lt;a href="https://drive.google.com/drive/folders/1Bzk7jMrgzsclKBkghvcnMCoDptfVB7hj?usp=sharing" id="if_insertedNode_1733418212871"&gt;here is a link&lt;/a&gt; to the materials. But here are the parts that I think are most important as well:&lt;br/&gt;&lt;br/&gt;Here's the code from the Batch file:&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch mere_exposure&amp;gt;&lt;br/&gt;/ file = "Mere Exposure 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ file = "SCIAT 30 vs. 0 exposures v1.iqx"&lt;br/&gt;/ onscriptend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(batch.mere_exposure.currentscript == "Mere Exposure 30 vs. 0 exposures v1.iqx")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parameters.target_character = values.target_character_mere_exposure&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;In the "Mere Exposure 30 vs. 0 exposures" file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_mere_exposure = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target_arrowleft&amp;gt;&lt;br/&gt;/ pretrialpause = 1500&lt;br/&gt;/ validresponse = ("I", "E")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulustimes = [1=fixation; 801=forwardmask; 831=target; 846=backwardmask; 876=blank; 877=leftarrow]&lt;br/&gt;/ ontrialend = [item.presentedtarget.appenditem(picture.target.currentitem);]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_mere_exposure = picture.target.currentitemnumber&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And then, in the SCIAT file I have this code: &lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/ target_character = 0&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ target_character_iat = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt a&amp;gt;&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionOrder = "c-ic";&lt;br/&gt;]&lt;br/&gt;/ onexptbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.target_character_iat = parameters.target_character;&lt;br/&gt;]&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/groups = (1 of 2)&lt;br/&gt;/ blocks = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1=practice_compatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2=compatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3=compatibletest;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4=practice_incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5=incompatibletestinstructions; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6=incompatibletest; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7=summary;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 05 Dec 2024 17:26:47 GMT</pubDate><dc:creator>satchmo496</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36753.aspx</link><description>&lt;blockquote data-id="36752" class="if-quote-wrapper" unselectable="on" data-guid="1733411591661" contenteditable="false" id="if_insertedNode_1733411589948"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36752" 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="36752" 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="36752" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/5/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36752"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1733411591661" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1733411591661" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!&lt;a class="if-quote-goto quote-link" href="#" data-id="36752"&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 don't need to pass a "picture". You need to pass an item number. That's no different than passing a score from script A to script B. Script A picks an item number, that item number just gets passed to script B in a variable / parameter.&lt;br/&gt;&lt;br/&gt;Script B then just needs to *use* that variable / parameter for item selection.&lt;br/&gt;&lt;br/&gt;The scripts you provided are of little use, since they can't be run. If you need to provide scripts, please always include any and all files they require to run.&lt;br/&gt;</description><pubDate>Thu, 05 Dec 2024 15:34:14 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36752.aspx</link><description>&lt;blockquote data-id="36748" class="if-quote-wrapper" unselectable="on" data-guid="1733411126032" contenteditable="false" id="if_insertedNode_1733411124961"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36748" 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="36748" 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="36748" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36748"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1733411126032" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36748"&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;I did consult this support article already but unfortunately, I'm unable to get things to work properly. The problem I'm running into is that I am selecting one from ten pictures as stimuli in the first script. The selected picture (or, at least, the number of the selected picture in the list) then needs to get passed to the second script. I've been easily able to pass numeric parameters in previous batch scripts I've constructed, but the added wrinkle of this being a picture that needs to get passed is tripping me up. It's almost certain that, given my limited programming experience, I am just making a simple error here. I'm attaching the scripts in case you are able to look them over and suggest a path forward. Thank you and, again, apologies for what I'm almost certain is a simple fix for someone who is more familiar with programming languages!</description><pubDate>Thu, 05 Dec 2024 15:12:14 GMT</pubDate><dc:creator>satchmo496</dc:creator></item><item><title>RE: Passing values from one script to another</title><link>https://forums.millisecond.com/Topic36748.aspx</link><description>&lt;blockquote data-id="36747" class="if-quote-wrapper" unselectable="on" data-guid="1733355598223" contenteditable="false" id="if_insertedNode_1733355596973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36747" 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="36747" 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="36747" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;satchmo496 - 12/4/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36747"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am designing a set of tasks for Inquisit web that I will run using the batch element.&lt;br/&gt;&lt;br/&gt;In the first task, one stimulus from a set of 10 stimuli is randomly selected and then this same stimulus is presented across numerous trials of the study. The stimulus is selected using the following counter element:&lt;br/&gt;&lt;br/&gt;&amp;lt;counter targetcounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-10)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;I need the second task to also present this same randomly-selected stimulus, which means I need to pass information about which stimulus was selected in the first task to the second task. I’m having trouble figuring out how to do this smoothly. Any guidance would be most appreciated! (Also happy to provide the scripts for the two tasks if it would be helpful).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36747"&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;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/batchparameters.htm&lt;/a&gt;</description><pubDate>Wed, 04 Dec 2024 23:40:41 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>