﻿<?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  » Escape to Quit</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 13 May 2026 15:02:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Escape to Quit</title><link>https://forums.millisecond.com/Topic34144.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I know about quit commands, but I was wondering if there's a way to turn the escape key into an exit from the program, either using quit commands or script abort functions? From what I can tell, quit commands require a two-key combination, and the script abort would only exit whatever phase of the experiment you're currently on, not the entire program.&lt;br/&gt;&lt;br/&gt;Thank you!</description><pubDate>Mon, 04 Apr 2022 19:05:36 GMT</pubDate><dc:creator>sadler@clicktherapeutics.com</dc:creator></item><item><title>RE: Escape to Quit</title><link>https://forums.millisecond.com/Topic34147.aspx</link><description>&lt;blockquote data-id="34146" class="if-quote-wrapper" unselectable="on" data-guid="1649099093764" id="if_insertedNode_1649099092531" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34146" 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="34146" 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="34146" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Sam - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34146"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;br/&gt;Thanks for confirming that! I suppose my other idea was to use a key press to "esc" to trigger a script.abort instead of using a quit command. But my experiment uses mouse input, not keyboard, so I don't think I can use a key to trigger a script.abort unless I use a quit command.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thank you again for your reply!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34146"&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;&amp;gt;[...] my experiment uses mouse input, not keyboard, so I don't think I can use a key to trigger a script.abort&lt;br/&gt;&lt;br/&gt;That is correct, the script would not recognize the escape key.</description><pubDate>Mon, 04 Apr 2022 19:05:36 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Escape to Quit</title><link>https://forums.millisecond.com/Topic34146.aspx</link><description>&lt;br/&gt;Thanks for confirming that! I suppose my other idea was to use a key press to "esc" to trigger a script.abort instead of using a quit command. But my experiment uses mouse input, not keyboard, so I don't think I can use a key to trigger a script.abort unless I use a quit command.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thank you again for your reply!&lt;br/&gt;</description><pubDate>Mon, 04 Apr 2022 18:49:00 GMT</pubDate><dc:creator>sadler@clicktherapeutics.com</dc:creator></item><item><title>RE: Escape to Quit</title><link>https://forums.millisecond.com/Topic34145.aspx</link><description>&lt;blockquote data-id="34144" class="if-quote-wrapper" unselectable="on" data-guid="1649096892029" id="if_insertedNode_1649096890717" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34144" 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="34144" 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="34144" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Sam - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34144"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&lt;br/&gt;&lt;br/&gt;I know about quit commands, but I was wondering if there's a way to turn the escape key into an exit from the program, either using quit commands or script abort functions? From what I can tell, quit commands require a two-key combination, and the script abort would only exit whatever phase of the experiment you're currently on, not the entire program.&lt;br/&gt;&lt;br/&gt;Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="34144"&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;Using /quitcommand: No. It requires at least a two-key combination.&lt;br/&gt;&lt;br/&gt;Using script.abort(), possibly, that would depend on your script and how/where you want to call script.abort().&lt;br/&gt;&lt;br/&gt;Regarding " the script abort would only exit whatever phase of the experiment you're currently on", it depends on where you've defined /quitcommand. If you define in it a &amp;lt;batch&amp;gt; script's &amp;lt;defaults&amp;gt;, it should terminate everything.&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ quitcommand = (SHIFT+1) // SHIFT + ESC&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ file = "a.iqx"&lt;br/&gt;/ file = "b.iqx"&lt;br/&gt;/ file = "c.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;</description><pubDate>Mon, 04 Apr 2022 18:34:40 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>