﻿<?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 3  » Subject id from .txt file</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 21 Sep 2026 04:00:10 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Subject id from .txt file</title><link>https://forums.millisecond.com/Topic3913.aspx</link><description>&lt;p&gt;Great! And thanks for posting a detailed outline of your solution -- I'm sure other users will find this very helpful.&lt;/p&gt;
&lt;p&gt;Best wishes from a fellow Inquisit user,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Wed, 17 Feb 2010 08:59:35 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Subject id from .txt file</title><link>https://forums.millisecond.com/Topic3912.aspx</link><description>&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;thanks for the reply! :D I used the .bat to get it to work! :)&lt;/p&gt;
&lt;p&gt;I almost figured it out myself, except that I used this: &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;JumpOut("&lt;b&gt;\\&lt;/b&gt;startexp.bat"; VariableNameToPass)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Which didn't work, now I've just used the following (difference is in the two backslashes, which Is stupid anyway :p):&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;JumpOut(&lt;b&gt;"&lt;/b&gt;startexp.bat"; VariableNameToPass)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;(the .bat is in the same directory..)&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;
&lt;p&gt;Cheers, Peppo&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;so, a recap on the &lt;span style="text-decoration: underline;"&gt;&lt;b&gt;solution &lt;/b&gt;&lt;/span&gt;for future readers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;create a .bat file (using notepad) which contains the program and script, and %1, like so:
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: courier new,courier;"&gt;"C:\Program Files\Millisecond Software\Inquisit 3\Inquisit.exe" "C:\Experiments\MyExperiment.exp" %1&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Save this as startexp.bat and use this to start your inquisit experiment in authorware (or other software for that matter..)&lt;/li&gt;
&lt;li&gt;Save the subject id in a variable (in this example: VariableNameToPass)&lt;/li&gt;
&lt;li&gt;line to start in authorware:
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: courier new,courier;"&gt;JumpOut(FileLocation^"\\startexp.bat"; VariableNameToPass)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description><pubDate>Wed, 17 Feb 2010 08:34:46 GMT</pubDate><dc:creator>peppo</dc:creator></item><item><title>RE: Subject id from .txt file</title><link>https://forums.millisecond.com/Topic3911.aspx</link><description>&lt;p&gt;Authorware should be able to append a variable (i.e. the id collected earlier) to a batch call. I'd try something like&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;JumpOut("C:\Program Files\Millisecond Software\Inquisit 3\Inquisit.exe", "C:\Experiments\MyExperiment.exp"; VariableNameToPass)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;where 'VariableNameToPass' is the variable that holds the participant ID collected earlier.&lt;/p&gt;
&lt;p&gt;If this doesn't work, I'd create a simple Windows text file containing the following line&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;"C:\Program Files\Millisecond Software\Inquisit 3\Inquisit.exe" "C:\Experiments\MyExperiment.exp" %1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and save it as 'startexp.bat' in the same direcory as the Authorware file. Then the first command would simplify to&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;JumpOut(FileLocation^"\\startexp.bat"; VariableNameToPass)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Some useful links:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://livedocs.adobe.com/authorware/7/using_aw_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Using_Authorware_7&amp;amp;file=16_fu198.htm"&gt;http://livedocs.adobe.com/authorware/7/using_aw_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Using_Authorware_7&amp;amp;file=16_fu198.htm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://sites.google.com/site/lakens2/AuthorwareGuideForReseachers2.3.pdf?attredirects=0"&gt;http://sites.google.com/site/lakens2/AuthorwareGuideForReseachers2.3.pdf?attredirects=0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/support/docs/v3/html/articles/batchscripts.htm"&gt;http://www.millisecond.com/support/docs/v3/html/articles/batchscripts.htm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/forums/Topic2435.aspx"&gt;http://www.millisecond.com/forums/Topic2435.aspx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once you've worked out a solution, please post it here. Others will appreciate it.&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Wed, 17 Feb 2010 07:35:21 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Subject id from .txt file</title><link>https://forums.millisecond.com/Topic3910.aspx</link><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I'm trying to string together different experiments (&lt;a title="authorware" href="http://www.authorware.com/"&gt;authorware &lt;/a&gt;and inquisit), with inquisit coming last. I want inquisit to use an id number that was specified earlier in the experiment. &lt;/p&gt;
&lt;p&gt;I've tried to use authorware to start inquisit with an id number like this: &lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;"C:\.......\script.exe 22"&lt;/p&gt;
&lt;p&gt;but this way every participant in inquisit gets the same number. I can't get the subject id variable between the "" in authorware..&lt;/p&gt;
&lt;p&gt;Perhaps it is possible to start inquisit with a subject id read from a text file? That way I could have authorware create a .txt with the subject id, and have inquisit read that file..&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated! :)&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Peppo.&lt;/p&gt;
</description><pubDate>Wed, 17 Feb 2010 07:10:38 GMT</pubDate><dc:creator>peppo</dc:creator></item></channel></rss>