﻿<?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 4  » error message superimposed onto trial</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 05 Apr 2026 14:17:21 GMT</lastBuildDate><ttl>20</ttl><item><title>error message superimposed onto trial</title><link>https://forums.millisecond.com/Topic17388.aspx</link><description>Hi there,&lt;br/&gt;I was wondering if there is some way to superimpose my error message onto the trial stimuli when an incorrect response is made? At the moment the error message is show for 500ms in another trial-type page.&lt;br/&gt;&lt;p&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/iscorrectresponse = [(picture.targets.currentitemnumber==2&amp;amp;&amp;amp;trial.old.response==51) || (picture.targets.currentitemnumber==1&amp;amp;&amp;amp;trial.old.response==52)]&lt;br/&gt;/validresponse = (51,52)&lt;br/&gt;/errormessage = true(error,500)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&amp;lt;text error&amp;gt;&lt;br/&gt;/ items = ("ERROR")&lt;br/&gt;/font = ("Arial", 32, 700, 0, 34)&lt;br/&gt;/ color = (red)&lt;br/&gt;/ position =(50,50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p&gt;Many thanks,&lt;br/&gt;&lt;br/&gt;Charlotte :) &lt;br/&gt;&lt;/p&gt;&lt;br/&gt;</description><pubDate>Wed, 14 Oct 2015 06:36:09 GMT</pubDate><dc:creator>charlottebooth</dc:creator></item><item><title>RE: error message superimposed onto trial</title><link>https://forums.millisecond.com/Topic17391.aspx</link><description>Yes, you absolutely *can* set the stimuli to /erase=false. All you need to do is to leave the error stimulus itself set to /erase=true and size it such that it clears the other stimuli once the error stimulus gets erased.&lt;br/&gt;&lt;br/&gt;Alternatively, you can clear them by overwriting them with a blank &amp;lt;shape&amp;gt; or other stimulus displayed via /stimulusframes or -times at whatever time you want/need. &lt;br/&gt;&lt;br/&gt;&amp;lt;block someblock&amp;gt;&lt;br/&gt;/ trials = [1-4=sometrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=blank, somestimulus]&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ errormessage = (errormsg, 500)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text somestimulus&amp;gt;&lt;br/&gt;/ items = ("A", "BB", "CCC", "DDDD")&lt;br/&gt;/ erase = false&lt;br/&gt;/ size = (20%,20%)&lt;br/&gt;/ position = (50%, 40%)&lt;br/&gt;/ txcolor = (black)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text errormsg&amp;gt;&lt;br/&gt;/ items = ("X")&lt;br/&gt;/ size = (20%,20%)&lt;br/&gt;/ position = (50%, 40%)&lt;br/&gt;/ txcolor = (red)&lt;br/&gt;/ txbgcolor = (transparent)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ erase = false&lt;br/&gt;/ color = (white)&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 14 Oct 2015 06:36:09 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: error message superimposed onto trial</title><link>https://forums.millisecond.com/Topic17390.aspx</link><description>Hi , Sorry for the seemingly stupid question! I didn't include most of my script because it is way too long. I tried your script and it does indeed work how I would like - but when I amend my own script it doesn't work! I set all of my stimuli to /erase=false and my error message to /txbg=(transparent). And while this does superimpose the error message - it also doesn't clear the stimuli at all for the next trials so I end up with a huge mess of stimuli building up over the experiment. Clearly I cannot set my stimuli to /erase=false. &lt;br/&gt;Thanks anyway!</description><pubDate>Wed, 14 Oct 2015 06:17:48 GMT</pubDate><dc:creator>charlottebooth</dc:creator></item><item><title>RE: error message superimposed onto trial</title><link>https://forums.millisecond.com/Topic17389.aspx</link><description>&amp;gt; I was wondering if there is some way to superimpose my error message onto the trial stimuli when an incorrect response is &lt;br/&gt;&amp;gt; made? At the moment the error message is show for 500ms in another trial-type page.&lt;br/&gt;&lt;br/&gt;I frankly have no idea what that's supposed to mean. Could you elaborate, please? I see a single &amp;lt;trial&amp;gt; element that displays an error message in the center of the screen. That &amp;lt;trial&amp;gt; does not appear to display any other stimuli that the message could possibly be imposed on. I'm also not sure what exactly you mean by "trial-type page".&lt;br/&gt;&lt;br/&gt;To be clear, if you have a &amp;lt;trial&amp;gt; display a stimulus and have the *same* &amp;lt;trial&amp;gt; element also display the error message, you can of course superimpose it on the stimulus.&lt;br/&gt;&lt;br/&gt;&amp;lt;block someblock&amp;gt;&lt;br/&gt;/ trials = [1-4=sometrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somestimulus]&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ errormessage = (errormsg, 500)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text somestimulus&amp;gt;&lt;br/&gt;/ items = ("Item 1", "Item 2", "Item 3", "Item 4")&lt;br/&gt;/ erase = false&lt;br/&gt;/ size = (20%,20%)&lt;br/&gt;/ position = (50%, 40%)&lt;br/&gt;/ txcolor = (black)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text errormsg&amp;gt;&lt;br/&gt;/ items = ("X")&lt;br/&gt;/ size = (20%,20%)&lt;br/&gt;/ position = (50%, 40%)&lt;br/&gt;/ txcolor = (red)&lt;br/&gt;/ txbgcolor = (transparent)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 14 Oct 2015 05:10:17 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>