﻿<?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  » Continuous recording of mouse coordinates</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 21:44:54 GMT</lastBuildDate><ttl>20</ttl><item><title>Continuous recording of mouse coordinates</title><link>https://forums.millisecond.com/Topic24991.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I’m trying to create an implementation of a procedure in Inquisit which is capable of providing me with the continuous output of the x and y coordinates of the mouse cursor throughout each trial of the procedure (akin to MouseTracker and similar such programs). I’ve tried a few different approaches to implementing this (which I can pass on if need be), but haven’t had much luck. At the moment, the most promising version I’m working with (which is an abridged version of code posted by Dave in this thread&amp;nbsp;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx" style="font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx"&gt;https://www.millisecond.com/forums/Topic18169.aspx&lt;/a&gt;&lt;/a&gt;) looks like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ leftpress = (mouse.x &amp;gt; 0.05*display.width &amp;amp;&amp;amp; mouse.x &amp;lt;&amp;nbsp; .1*display.width &amp;amp;&amp;amp; mouse.y &amp;gt; 0*display.height &amp;amp;&amp;amp; mouse.y &amp;lt; .1*display.height)&lt;br/&gt;/ rightpress = (mouse.x &amp;gt; 0.9*display.width &amp;amp;&amp;amp; mouse.x &amp;lt;&amp;nbsp; .95*display.width &amp;amp;&amp;amp; mouse.y &amp;gt; 0*display.height &amp;amp;&amp;amp; mouse.y &amp;lt; .1*display.height)&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ mouse_x = ""&lt;br/&gt;/ mouse_y = ""&lt;br/&gt;/ mouse_time = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock2&amp;gt;&lt;br/&gt;/ trials = [1, 2 = sequence(startbutton,mouseovertrial)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial startbutton&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.mouse_x = ""; ]&lt;br/&gt;/ stimulusframes = [1=start]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (start)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text start&amp;gt;&lt;br/&gt;/ items = ("CLICK HERE TO START")&lt;br/&gt;/ position = (50%, 90%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mouseovertrial&amp;gt;&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ stimulusframes = [1=true,false]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_x = concat(concat(values.mouse_x, mouse.x), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress || expressions.rightpress ]&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_y = concat(concat(values.mouse_y, mouse.y), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress&amp;nbsp; || expressions.rightpress ]&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_time = concat(concat(values.mouse_time, trial.mouseovertrial.latency), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress&amp;nbsp; || expressions.rightpress ]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text true&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ txbgcolor = (white)&lt;br/&gt;/ size = (5%, 5%)&lt;br/&gt;/ position = (10%,5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text false&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ txbgcolor = (white)&lt;br/&gt;/ size = (5%,5%)&lt;br/&gt;/ position = (90%,5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date time subject trialnum trialcode response latency expressions.leftpress expressions.rightpress values.mouse_x values.mouse_y values.mouse_time]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I have the following issues with the code thus far:&lt;br/&gt;1. The code only outputs coordinates when there is a mousemove response, which is problematic if the participant does not move the mouse for prolonged periods of time. Of course if the mouse isn’t moved then the position is known, but ideally it would be nice for the data to reflect this stasis in some way. Is there any way to record these coordinates at regular, frequent (~3ms) intervals? I know Dave in a previous post said that it is preferable to not do this within the Inquisit framework, but is it hypothetically possible to efficiently implement? Or is there some workaround which could avoid the issue of not recording coordinates when there is no movement?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;2. In the data file that is produced for the mouse coordinates and timing, it seems to add new data cumulatively. For example, if my times for trial 1 are 5, 10, 15, 20, and my times for trial 2 are 4, 8, 12, and 16, then trial 2’s output for timing is “5, 10, 15, 20, 4, 8, 12, 16”. Is there any solution to this such that the coordinates and timings produced for each trial are representative of that individual trial's movements only?&lt;br/&gt;&lt;br/&gt;I only starting using Inquisit a couple of months ago, so my code is most likely sub-optimal. Any help with this would be greatly appreciated. Thanks!&lt;br/&gt;</description><pubDate>Fri, 18 May 2018 02:07:14 GMT</pubDate><dc:creator>jcummins</dc:creator></item><item><title>RE: Continuous recording of mouse coordinates</title><link>https://forums.millisecond.com/Topic25003.aspx</link><description>&lt;div data-id="24995" class="if-quote-wrapper" unselectable="on" data-guid="1526634444158"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="24995" 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="24995" 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="24995" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, May 17, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-24995"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="24991" class="if-quote-wrapper" unselectable="on" data-guid="1526634444158"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="24991" 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="24991" 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="24991" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;jcummins - Thursday, May 17, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-24991"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I’m trying to create an implementation of a procedure in Inquisit which is capable of providing me with the continuous output of the x and y coordinates of the mouse cursor throughout each trial of the procedure (akin to MouseTracker and similar such programs). I’ve tried a few different approaches to implementing this (which I can pass on if need be), but haven’t had much luck. At the moment, the most promising version I’m working with (which is an abridged version of code posted by Dave in this thread&amp;nbsp;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx" style="font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;/a&gt;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx"&gt;https://www.millisecond.com/forums/Topic18169.aspx&lt;/a&gt;&lt;/a&gt;) looks like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ leftpress = (mouse.x &amp;gt; 0.05*display.width &amp;amp;&amp;amp; mouse.x &amp;lt;&amp;nbsp; .1*display.width &amp;amp;&amp;amp; mouse.y &amp;gt; 0*display.height &amp;amp;&amp;amp; mouse.y &amp;lt; .1*display.height)&lt;br/&gt;/ rightpress = (mouse.x &amp;gt; 0.9*display.width &amp;amp;&amp;amp; mouse.x &amp;lt;&amp;nbsp; .95*display.width &amp;amp;&amp;amp; mouse.y &amp;gt; 0*display.height &amp;amp;&amp;amp; mouse.y &amp;lt; .1*display.height)&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ mouse_x = ""&lt;br/&gt;/ mouse_y = ""&lt;br/&gt;/ mouse_time = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock2&amp;gt;&lt;br/&gt;/ trials = [1, 2 = sequence(startbutton,mouseovertrial)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial startbutton&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.mouse_x = ""; ]&lt;br/&gt;/ stimulusframes = [1=start]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (start)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text start&amp;gt;&lt;br/&gt;/ items = ("CLICK HERE TO START")&lt;br/&gt;/ position = (50%, 90%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mouseovertrial&amp;gt;&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ stimulusframes = [1=true,false]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_x = concat(concat(values.mouse_x, mouse.x), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress || expressions.rightpress ]&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_y = concat(concat(values.mouse_y, mouse.y), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress&amp;nbsp; || expressions.rightpress ]&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_time = concat(concat(values.mouse_time, trial.mouseovertrial.latency), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress&amp;nbsp; || expressions.rightpress ]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text true&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ txbgcolor = (white)&lt;br/&gt;/ size = (5%, 5%)&lt;br/&gt;/ position = (10%,5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text false&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ txbgcolor = (white)&lt;br/&gt;/ size = (5%,5%)&lt;br/&gt;/ position = (90%,5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date time subject trialnum trialcode response latency expressions.leftpress expressions.rightpress values.mouse_x values.mouse_y values.mouse_time]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I have the following issues with the code thus far:&lt;br/&gt;1. The code only outputs coordinates when there is a mousemove response, which is problematic if the participant does not move the mouse for prolonged periods of time. Of course if the mouse isn’t moved then the position is known, but ideally it would be nice for the data to reflect this stasis in some way. Is there any way to record these coordinates at regular, frequent (~3ms) intervals? I know Dave in a previous post said that it is preferable to not do this within the Inquisit framework, but is it hypothetically possible to efficiently implement? Or is there some workaround which could avoid the issue of not recording coordinates when there is no movement?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;2. In the data file that is produced for the mouse coordinates and timing, it seems to add new data cumulatively. For example, if my times for trial 1 are 5, 10, 15, 20, and my times for trial 2 are 4, 8, 12, and 16, then trial 2’s output for timing is “5, 10, 15, 20, 4, 8, 12, 16”. Is there any solution to this such that the coordinates and timings produced for each trial are representative of that individual trial's movements only?&lt;br/&gt;&lt;br/&gt;I only starting using Inquisit a couple of months ago, so my code is most likely sub-optimal. Any help with this would be greatly appreciated. Thanks!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="24991"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Re. #1: "Is there any way to record these coordinates at regular, frequent (~3ms) intervals?"&lt;br/&gt;&lt;br/&gt;No, I cannot think of a way to do that.&lt;br/&gt;&lt;br/&gt;Re. #2: Yes, you need to reset the respective values to an empty string at the start of each round.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="24995"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for the response!</description><pubDate>Fri, 18 May 2018 02:07:14 GMT</pubDate><dc:creator>jcummins</dc:creator></item><item><title>RE: Continuous recording of mouse coordinates</title><link>https://forums.millisecond.com/Topic24995.aspx</link><description>&lt;div data-id="24991" class="if-quote-wrapper" unselectable="on" data-guid="1526572688524"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="24991" 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="24991" 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="24991" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;jcummins - Thursday, May 17, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-24991"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I’m trying to create an implementation of a procedure in Inquisit which is capable of providing me with the continuous output of the x and y coordinates of the mouse cursor throughout each trial of the procedure (akin to MouseTracker and similar such programs). I’ve tried a few different approaches to implementing this (which I can pass on if need be), but haven’t had much luck. At the moment, the most promising version I’m working with (which is an abridged version of code posted by Dave in this thread&amp;nbsp;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx" style="font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;/a&gt;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/Topic18169.aspx"&gt;https://www.millisecond.com/forums/Topic18169.aspx&lt;/a&gt;&lt;/a&gt;) looks like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ leftpress = (mouse.x &amp;gt; 0.05*display.width &amp;amp;&amp;amp; mouse.x &amp;lt;&amp;nbsp; .1*display.width &amp;amp;&amp;amp; mouse.y &amp;gt; 0*display.height &amp;amp;&amp;amp; mouse.y &amp;lt; .1*display.height)&lt;br/&gt;/ rightpress = (mouse.x &amp;gt; 0.9*display.width &amp;amp;&amp;amp; mouse.x &amp;lt;&amp;nbsp; .95*display.width &amp;amp;&amp;amp; mouse.y &amp;gt; 0*display.height &amp;amp;&amp;amp; mouse.y &amp;lt; .1*display.height)&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ mouse_x = ""&lt;br/&gt;/ mouse_y = ""&lt;br/&gt;/ mouse_time = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock2&amp;gt;&lt;br/&gt;/ trials = [1, 2 = sequence(startbutton,mouseovertrial)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial startbutton&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.mouse_x = ""; ]&lt;br/&gt;/ stimulusframes = [1=start]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (start)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text start&amp;gt;&lt;br/&gt;/ items = ("CLICK HERE TO START")&lt;br/&gt;/ position = (50%, 90%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mouseovertrial&amp;gt;&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ stimulusframes = [1=true,false]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_x = concat(concat(values.mouse_x, mouse.x), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress || expressions.rightpress ]&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_y = concat(concat(values.mouse_y, mouse.y), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress&amp;nbsp; || expressions.rightpress ]&lt;br/&gt;/ isvalidresponse = [if (trial.mouseovertrial.response == "mousemove") {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.mouse_time = concat(concat(values.mouse_time, trial.mouseovertrial.latency), ", ");&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false; } ;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.leftpress&amp;nbsp; || expressions.rightpress ]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text true&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ txbgcolor = (white)&lt;br/&gt;/ size = (5%, 5%)&lt;br/&gt;/ position = (10%,5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text false&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ txbgcolor = (white)&lt;br/&gt;/ size = (5%,5%)&lt;br/&gt;/ position = (90%,5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date time subject trialnum trialcode response latency expressions.leftpress expressions.rightpress values.mouse_x values.mouse_y values.mouse_time]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I have the following issues with the code thus far:&lt;br/&gt;1. The code only outputs coordinates when there is a mousemove response, which is problematic if the participant does not move the mouse for prolonged periods of time. Of course if the mouse isn’t moved then the position is known, but ideally it would be nice for the data to reflect this stasis in some way. Is there any way to record these coordinates at regular, frequent (~3ms) intervals? I know Dave in a previous post said that it is preferable to not do this within the Inquisit framework, but is it hypothetically possible to efficiently implement? Or is there some workaround which could avoid the issue of not recording coordinates when there is no movement?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;2. In the data file that is produced for the mouse coordinates and timing, it seems to add new data cumulatively. For example, if my times for trial 1 are 5, 10, 15, 20, and my times for trial 2 are 4, 8, 12, and 16, then trial 2’s output for timing is “5, 10, 15, 20, 4, 8, 12, 16”. Is there any solution to this such that the coordinates and timings produced for each trial are representative of that individual trial's movements only?&lt;br/&gt;&lt;br/&gt;I only starting using Inquisit a couple of months ago, so my code is most likely sub-optimal. Any help with this would be greatly appreciated. Thanks!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="24991"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Re. #1: "Is there any way to record these coordinates at regular, frequent (~3ms) intervals?"&lt;br/&gt;&lt;br/&gt;No, I cannot think of a way to do that.&lt;br/&gt;&lt;br/&gt;Re. #2: Yes, you need to reset the respective values to an empty string at the start of each round.&lt;br/&gt;</description><pubDate>Thu, 17 May 2018 08:59:35 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>