﻿<?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  » show mouse cursor with conditional statement</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 27 Sep 2026 02:19:19 GMT</lastBuildDate><ttl>20</ttl><item><title>show mouse cursor with conditional statement</title><link>https://forums.millisecond.com/Topic30469.aspx</link><description>Hi all, &lt;br/&gt;I am programming an experiment during which subjects are shown with a series of picture frames that&amp;nbsp; in sequence create a brief video. After watching the video the item on the screen suddenly disappears, and that's when subjects have to use the mouse cursor to select where they think the item was before it disappeared.&amp;nbsp;&lt;br/&gt;For this reason I don't want the mouse cursor to be on the screen for the whole trial, in order to prevent that subjects could trace with the mouse the position of the item before it disappears.&amp;nbsp;&lt;br/&gt;So, my problem is that -as far as I know - the showmousecursor property could be set either to true or false, but I want the mouse cursor to show just at the end of the trial, specifically when the last frame is presented. Do you know any trick (i.e. conditional statements that could be used) to show the mouse cursor just at the end of trial (i.e. when participant have to make the response)??&lt;br/&gt;&lt;br/&gt;Here is my code:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/Actiontype=0&lt;br/&gt;/con = 0&lt;br/&gt;/object = 0&lt;br/&gt;/length = 0&lt;br/&gt;/time_sound = (round(rand(60,180)))&lt;br/&gt;/time_second_frame = time_sound+60+5&lt;br/&gt;/time_third_frame = time_sound+60+5+5&lt;br/&gt;/time_final_third = time_sound+60+5+5+5&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt; &amp;lt;trial safe_3_backward_inc&amp;gt; &lt;br/&gt;/ ontrialbegin = [values.Actiontype="Withdrawal"; values.con = "Incongruent"; values.object = "safe"; values.length = 3]&lt;br/&gt;/ ontrialbegin = [trial.safe_3_backward_inc.insertstimulusframe(sound.take, values.time_sound); trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_second_frame, values.time_second_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_third_frame, values.time_third_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_w, values.time_final_third)]&lt;br/&gt;/ stimulusframes = [1 = safe_first_frame]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ correctresponse =(lbuttondown)&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetrial = (lbuttondown, space)&lt;br/&gt;/ ontrialend = [values.x=trial.safe_3_backward_inc.responsex;values.y=trial.safe_3_backward_inc.responsey;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thank you in advance!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Eleonora&lt;br/&gt;</description><pubDate>Mon, 11 Jan 2021 22:19:41 GMT</pubDate><dc:creator>eleonora_parr</dc:creator></item><item><title>RE: show mouse cursor with conditional statement</title><link>https://forums.millisecond.com/Topic30472.aspx</link><description>&lt;blockquote data-id="30471" class="if-quote-wrapper" unselectable="on" data-guid="1610403508602" id="if_insertedNode_1610403507942" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30471" 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="30471" 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="30471" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;eleonora_parr - 1/11/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30471"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30470" class="if-quote-wrapper" unselectable="on" data-guid="1610403508602" id="if_insertedNode_1610398691550" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30470" 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="30470" 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="30470" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 1/11/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30470"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30469" class="if-quote-wrapper" unselectable="on" data-guid="1610403508602" id="if_insertedNode_1610397330578" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30469" 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="30469" 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="30469" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;eleonora_parr - 1/11/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30469"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all, &lt;br/&gt;I am programming an experiment during which subjects are shown with a series of picture frames that&amp;nbsp; in sequence create a brief video. After watching the video the item on the screen suddenly disappears, and that's when subjects have to use the mouse cursor to select where they think the item was before it disappeared.&amp;nbsp;&lt;br/&gt;For this reason I don't want the mouse cursor to be on the screen for the whole trial, in order to prevent that subjects could trace with the mouse the position of the item before it disappears.&amp;nbsp;&lt;br/&gt;So, my problem is that -as far as I know - the showmousecursor property could be set either to true or false, but I want the mouse cursor to show just at the end of the trial, specifically when the last frame is presented. Do you know any trick (i.e. conditional statements that could be used) to show the mouse cursor just at the end of trial (i.e. when participant have to make the response)??&lt;br/&gt;&lt;br/&gt;Here is my code:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/Actiontype=0&lt;br/&gt;/con = 0&lt;br/&gt;/object = 0&lt;br/&gt;/length = 0&lt;br/&gt;/time_sound = (round(rand(60,180)))&lt;br/&gt;/time_second_frame = time_sound+60+5&lt;br/&gt;/time_third_frame = time_sound+60+5+5&lt;br/&gt;/time_final_third = time_sound+60+5+5+5&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt; &amp;lt;trial safe_3_backward_inc&amp;gt; &lt;br/&gt;/ ontrialbegin = [values.Actiontype="Withdrawal"; values.con = "Incongruent"; values.object = "safe"; values.length = 3]&lt;br/&gt;/ ontrialbegin = [trial.safe_3_backward_inc.insertstimulusframe(sound.take, values.time_sound); trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_second_frame, values.time_second_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_third_frame, values.time_third_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_w, values.time_final_third)]&lt;br/&gt;/ stimulusframes = [1 = safe_first_frame]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ correctresponse =(lbuttondown)&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetrial = (lbuttondown, space)&lt;br/&gt;/ ontrialend = [values.x=trial.safe_3_backward_inc.responsex;values.y=trial.safe_3_backward_inc.responsey;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thank you in advance!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Eleonora&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30469"&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 only trick I can think of would be to split things into two trials, i.e. something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/Actiontype=0&lt;br/&gt;/con = 0&lt;br/&gt;/object = 0&lt;br/&gt;/length = 0&lt;br/&gt;/time_sound = (round(rand(60,180)))&lt;br/&gt;/time_second_frame = time_sound+60+5&lt;br/&gt;/time_third_frame = time_sound+60+5+5&lt;br/&gt;/time_final_third = time_sound+60+5+5+5&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial safe_3_backward_inc_present&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.Actiontype="Withdrawal"; values.con = "Incongruent"; values.object = "safe"; values.length = 3]&lt;br/&gt;/ ontrialbegin = [trial.safe_3_backward_inc.insertstimulusframe(sound.take, values.time_sound); &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_second_frame, values.time_second_frame);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_third_frame, values.time_third_frame);&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = safe_first_frame]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ inputdevice = mousekey&lt;br/&gt;/ showmousecursor = false&lt;br/&gt;/ trialduration = values.time_final_third&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc_respond;&lt;br/&gt;]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial safe_3_backward_inc_respond&amp;gt;&lt;br/&gt;/ stimulusframes = [1=safe_w]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ correctresponse = (lbuttondown)&lt;br/&gt;...&lt;br/&gt;/ ontrialend = [values.x=trial.safe_3_backward_inc_respond.responsex;values.y=trial.safe_3_backward_inc_respond.responsey;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30470"&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;Hi Dave,&lt;br/&gt;Thank you for your answer. &lt;br/&gt;Do you mean that after your code I would then need to combine the trials within a block? &lt;br/&gt;Just to make sure that I am understanding correctly..&amp;nbsp;&lt;br/&gt;I've already tried the option of splitting the two but I would have preferred to keep everything into a single trial, that is why I was looking for a trick :) If that's not possible I will go with this option though&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thank you again, &lt;br/&gt;&lt;br/&gt;Eleonora &lt;a class="if-quote-goto quote-link" href="#" data-id="30471"&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; Do you mean that after your code I would then need to combine the trials within a block? &lt;br/&gt;&lt;br/&gt;You only need to run the first ("present") trial via a block or other means. That trial then automatically invokes the corresponding "respond" trial via /branch.&lt;br/&gt;&lt;br/&gt;I really cannot think of any other option, so this would be the way to go.&lt;br/&gt;</description><pubDate>Mon, 11 Jan 2021 22:19:41 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: show mouse cursor with conditional statement</title><link>https://forums.millisecond.com/Topic30471.aspx</link><description>&lt;blockquote data-id="30470" class="if-quote-wrapper" unselectable="on" data-guid="1610398691654" contenteditable="false" id="if_insertedNode_1610398691550"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30470" 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="30470" 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="30470" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 1/11/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30470"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30469" class="if-quote-wrapper" unselectable="on" data-guid="1610398691654" id="if_insertedNode_1610397330578" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30469" 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="30469" 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="30469" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;eleonora_parr - 1/11/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30469"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all, &lt;br/&gt;I am programming an experiment during which subjects are shown with a series of picture frames that&amp;nbsp; in sequence create a brief video. After watching the video the item on the screen suddenly disappears, and that's when subjects have to use the mouse cursor to select where they think the item was before it disappeared.&amp;nbsp;&lt;br/&gt;For this reason I don't want the mouse cursor to be on the screen for the whole trial, in order to prevent that subjects could trace with the mouse the position of the item before it disappears.&amp;nbsp;&lt;br/&gt;So, my problem is that -as far as I know - the showmousecursor property could be set either to true or false, but I want the mouse cursor to show just at the end of the trial, specifically when the last frame is presented. Do you know any trick (i.e. conditional statements that could be used) to show the mouse cursor just at the end of trial (i.e. when participant have to make the response)??&lt;br/&gt;&lt;br/&gt;Here is my code:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/Actiontype=0&lt;br/&gt;/con = 0&lt;br/&gt;/object = 0&lt;br/&gt;/length = 0&lt;br/&gt;/time_sound = (round(rand(60,180)))&lt;br/&gt;/time_second_frame = time_sound+60+5&lt;br/&gt;/time_third_frame = time_sound+60+5+5&lt;br/&gt;/time_final_third = time_sound+60+5+5+5&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt; &amp;lt;trial safe_3_backward_inc&amp;gt; &lt;br/&gt;/ ontrialbegin = [values.Actiontype="Withdrawal"; values.con = "Incongruent"; values.object = "safe"; values.length = 3]&lt;br/&gt;/ ontrialbegin = [trial.safe_3_backward_inc.insertstimulusframe(sound.take, values.time_sound); trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_second_frame, values.time_second_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_third_frame, values.time_third_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_w, values.time_final_third)]&lt;br/&gt;/ stimulusframes = [1 = safe_first_frame]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ correctresponse =(lbuttondown)&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetrial = (lbuttondown, space)&lt;br/&gt;/ ontrialend = [values.x=trial.safe_3_backward_inc.responsex;values.y=trial.safe_3_backward_inc.responsey;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thank you in advance!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Eleonora&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30469"&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 only trick I can think of would be to split things into two trials, i.e. something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/Actiontype=0&lt;br/&gt;/con = 0&lt;br/&gt;/object = 0&lt;br/&gt;/length = 0&lt;br/&gt;/time_sound = (round(rand(60,180)))&lt;br/&gt;/time_second_frame = time_sound+60+5&lt;br/&gt;/time_third_frame = time_sound+60+5+5&lt;br/&gt;/time_final_third = time_sound+60+5+5+5&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial safe_3_backward_inc_present&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.Actiontype="Withdrawal"; values.con = "Incongruent"; values.object = "safe"; values.length = 3]&lt;br/&gt;/ ontrialbegin = [trial.safe_3_backward_inc.insertstimulusframe(sound.take, values.time_sound); &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_second_frame, values.time_second_frame);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_third_frame, values.time_third_frame);&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = safe_first_frame]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ inputdevice = mousekey&lt;br/&gt;/ showmousecursor = false&lt;br/&gt;/ trialduration = values.time_final_third&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc_respond;&lt;br/&gt;]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial safe_3_backward_inc_respond&amp;gt;&lt;br/&gt;/ stimulusframes = [1=safe_w]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ correctresponse = (lbuttondown)&lt;br/&gt;...&lt;br/&gt;/ ontrialend = [values.x=trial.safe_3_backward_inc_respond.responsex;values.y=trial.safe_3_backward_inc_respond.responsey;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30470"&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;Hi Dave,&lt;br/&gt;Thank you for your answer. &lt;br/&gt;Do you mean that after your code I would then need to combine the trials within a block? &lt;br/&gt;Just to make sure that I am understanding correctly..&amp;nbsp;&lt;br/&gt;I've already tried the option of splitting the two but I would have preferred to keep everything into a single trial, that is why I was looking for a trick :) If that's not possible I will go with this option though&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thank you again, &lt;br/&gt;&lt;br/&gt;Eleonora </description><pubDate>Mon, 11 Jan 2021 21:02:09 GMT</pubDate><dc:creator>eleonora_parr</dc:creator></item><item><title>RE: show mouse cursor with conditional statement</title><link>https://forums.millisecond.com/Topic30470.aspx</link><description>&lt;blockquote data-id="30469" class="if-quote-wrapper" unselectable="on" data-guid="1610397331439" id="if_insertedNode_1610397330578" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30469" 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="30469" 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="30469" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;eleonora_parr - 1/11/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30469"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all, &lt;br/&gt;I am programming an experiment during which subjects are shown with a series of picture frames that&amp;nbsp; in sequence create a brief video. After watching the video the item on the screen suddenly disappears, and that's when subjects have to use the mouse cursor to select where they think the item was before it disappeared.&amp;nbsp;&lt;br/&gt;For this reason I don't want the mouse cursor to be on the screen for the whole trial, in order to prevent that subjects could trace with the mouse the position of the item before it disappears.&amp;nbsp;&lt;br/&gt;So, my problem is that -as far as I know - the showmousecursor property could be set either to true or false, but I want the mouse cursor to show just at the end of the trial, specifically when the last frame is presented. Do you know any trick (i.e. conditional statements that could be used) to show the mouse cursor just at the end of trial (i.e. when participant have to make the response)??&lt;br/&gt;&lt;br/&gt;Here is my code:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/Actiontype=0&lt;br/&gt;/con = 0&lt;br/&gt;/object = 0&lt;br/&gt;/length = 0&lt;br/&gt;/time_sound = (round(rand(60,180)))&lt;br/&gt;/time_second_frame = time_sound+60+5&lt;br/&gt;/time_third_frame = time_sound+60+5+5&lt;br/&gt;/time_final_third = time_sound+60+5+5+5&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt; &amp;lt;trial safe_3_backward_inc&amp;gt; &lt;br/&gt;/ ontrialbegin = [values.Actiontype="Withdrawal"; values.con = "Incongruent"; values.object = "safe"; values.length = 3]&lt;br/&gt;/ ontrialbegin = [trial.safe_3_backward_inc.insertstimulusframe(sound.take, values.time_sound); trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_second_frame, values.time_second_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_third_frame, values.time_third_frame);trial.safe_3_backward_inc.insertstimulusframe(picture.safe_w, values.time_final_third)]&lt;br/&gt;/ stimulusframes = [1 = safe_first_frame]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ correctresponse =(lbuttondown)&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetrial = (lbuttondown, space)&lt;br/&gt;/ ontrialend = [values.x=trial.safe_3_backward_inc.responsex;values.y=trial.safe_3_backward_inc.responsey;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thank you in advance!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Eleonora&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30469"&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 only trick I can think of would be to split things into two trials, i.e. something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/Actiontype=0&lt;br/&gt;/con = 0&lt;br/&gt;/object = 0&lt;br/&gt;/length = 0&lt;br/&gt;/time_sound = (round(rand(60,180)))&lt;br/&gt;/time_second_frame = time_sound+60+5&lt;br/&gt;/time_third_frame = time_sound+60+5+5&lt;br/&gt;/time_final_third = time_sound+60+5+5+5&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial safe_3_backward_inc_present&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.Actiontype="Withdrawal"; values.con = "Incongruent"; values.object = "safe"; values.length = 3]&lt;br/&gt;/ ontrialbegin = [trial.safe_3_backward_inc.insertstimulusframe(sound.take, values.time_sound); &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_second_frame, values.time_second_frame);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc.insertstimulusframe(picture.safe_minus_third_frame, values.time_third_frame);&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = safe_first_frame]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ inputdevice = mousekey&lt;br/&gt;/ showmousecursor = false&lt;br/&gt;/ trialduration = values.time_final_third&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.safe_3_backward_inc_respond;&lt;br/&gt;]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial safe_3_backward_inc_respond&amp;gt;&lt;br/&gt;/ stimulusframes = [1=safe_w]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ correctresponse = (lbuttondown)&lt;br/&gt;...&lt;br/&gt;/ ontrialend = [values.x=trial.safe_3_backward_inc_respond.responsex;values.y=trial.safe_3_backward_inc_respond.responsey;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 11 Jan 2021 20:50:36 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>