﻿<?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 5  » record initial movement time</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 08 Apr 2026 19:06:45 GMT</lastBuildDate><ttl>20</ttl><item><title>record initial movement time</title><link>https://forums.millisecond.com/Topic27639.aspx</link><description>Dear Inquisit Community&lt;br/&gt;My task is: participants started moving the mouse to click somewhere on the screen after clicking "A".&lt;br/&gt;I&amp;nbsp;recorded when the mouse started moving using "mousemove" by using "branch" to connect two trials (mousemove and click).&lt;br/&gt;Is there another way to record the "mousemove" latency without separating into two trial?&lt;br/&gt;? Because I wanted to avoid extra delays between trial initiation.&amp;nbsp;&lt;br/&gt;thank you in advance;)&lt;br/&gt;&amp;nbsp;</description><pubDate>Sun, 25 Aug 2019 11:56:06 GMT</pubDate><dc:creator>nakayama</dc:creator></item><item><title>RE: record initial movement time</title><link>https://forums.millisecond.com/Topic27653.aspx</link><description>&lt;div data-id="27652" class="if-quote-wrapper" unselectable="on" data-guid="1566759344029"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27652" 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="27652" 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="27652" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nakayama - 8/24/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27652"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27640" class="if-quote-wrapper" unselectable="on" data-guid="1566759344029"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27640" 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="27640" 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="27640" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27640"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27639" class="if-quote-wrapper" unselectable="on" data-guid="1566759344029"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27639" 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="27639" 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="27639" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nakayama - 8/22/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27639"&gt;&lt;div class="if-quote-message-margin"&gt;Dear Inquisit Community&lt;br/&gt;My task is: participants started moving the mouse to click somewhere on the screen after clicking "A".&lt;br/&gt;I&amp;nbsp;recorded when the mouse started moving using "mousemove" by using "branch" to connect two trials (mousemove and click).&lt;br/&gt;Is there another way to record the "mousemove" latency without separating into two trial?&lt;br/&gt;? Because I wanted to avoid extra delays between trial initiation.&amp;nbsp;&lt;br/&gt;thank you in advance;)&lt;br/&gt;&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="27639"&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;You can use /isvalidresponse logic:&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns=[subject, blockcode, trialcode, trialnum, trialduration,trialtimeout,latency, response, &lt;br/&gt;values.mm_rt trial.tap.responsex,trial.tap.responsey,stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ ax=960&lt;br/&gt;/ by=600&lt;br/&gt;/ count = 0&lt;br/&gt;/ mm_rt = -1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-20=start]&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape pencil&amp;gt;&lt;br/&gt;/ shape = circle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (.5%, .5%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.count = 0;&lt;br/&gt;values.mm_rt = -1;&lt;br/&gt;]&lt;br/&gt;/ validresponse = (start)&lt;br/&gt;/ stimulustimes = [0=screen,start]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&lt;br/&gt;/ responseinterrupt = immediate&lt;br/&gt;/ branch = [if (trial.start.response=="start") trial.tap]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mouseposition&amp;gt;&lt;br/&gt;/ items= ("mouse xy position = &amp;lt;% trial.tap.responsex %&amp;gt;&amp;lt;% trial.tap.responsey %&amp;gt;")&lt;br/&gt;/ position = (50,80)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mouseinitialtime&amp;gt;&lt;br/&gt;/ items= ("mouse time = &amp;lt;%values.mm_rt%&amp;gt;")&lt;br/&gt;/ position = (50,50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clicktime&amp;gt;&lt;br/&gt;/ items= ("click time = &amp;lt;%trial.tap.latency%&amp;gt;")&lt;br/&gt;/ position = (50,60)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial tap&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.count += 1;&lt;br/&gt;]&lt;br/&gt;/ validresponse = (lbuttondown, mousemove)&lt;br/&gt;/ stimulustimes = [0=screen]&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;if (trial.tap.response == "mousemove" &amp;amp;&amp;amp; values.count == 1) {&lt;br/&gt;values.mm_rt = trial.tap.latency; values.count += 1; false;&lt;br/&gt;} else if (trial.tap.response == "mousemove" &amp;amp;&amp;amp; values.count &amp;gt; 1) {&lt;br/&gt;false;&lt;br/&gt;} else true;&lt;br/&gt;]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ draw = pencil&lt;br/&gt;/ showmousecursor=true&lt;br/&gt;/ branch = [&lt;br/&gt;trial.end&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ stimulustimes = [0=clearscreen, mouseposition, mouseinitialtime, clicktime]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text start&amp;gt;&lt;br/&gt;/ items = ("A")&lt;br/&gt;/ fontstyle = ("MS UI Gothic", 5.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ position = (960px,600px)&lt;br/&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape screen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (1920px, 1200px)&lt;br/&gt;/ position = (960px, 600px)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27640"&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;Thank you Dave, for your helpful script;)&lt;br/&gt;I have another question: is it possible to record the offset of the mouse movement instead of mouse click? So instead of clicking to terminate the trial, participants just stopped moving the mouse to end the trial.&lt;br/&gt;I didn't find a syntax something like "non-mousemove" and tried something like "!mousemove" but failed.&lt;br/&gt;&amp;nbsp;Thank you in advance;)&lt;a class="if-quote-goto quote-link" href="#" data-id="27652"&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;No, I can't think of a way to make that happen.&lt;br/&gt;</description><pubDate>Sun, 25 Aug 2019 11:56:06 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: record initial movement time</title><link>https://forums.millisecond.com/Topic27652.aspx</link><description>&lt;div data-id="27640" class="if-quote-wrapper" unselectable="on" data-guid="1566639114198"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27640" 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="27640" 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="27640" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27640"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27639" class="if-quote-wrapper" unselectable="on" data-guid="1566639114198"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27639" 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="27639" 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="27639" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nakayama - 8/22/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27639"&gt;&lt;div class="if-quote-message-margin"&gt;Dear Inquisit Community&lt;br/&gt;My task is: participants started moving the mouse to click somewhere on the screen after clicking "A".&lt;br/&gt;I&amp;nbsp;recorded when the mouse started moving using "mousemove" by using "branch" to connect two trials (mousemove and click).&lt;br/&gt;Is there another way to record the "mousemove" latency without separating into two trial?&lt;br/&gt;? Because I wanted to avoid extra delays between trial initiation.&amp;nbsp;&lt;br/&gt;thank you in advance;)&lt;br/&gt;&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="27639"&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;You can use /isvalidresponse logic:&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns=[subject, blockcode, trialcode, trialnum, trialduration,trialtimeout,latency, response, &lt;br/&gt;values.mm_rt trial.tap.responsex,trial.tap.responsey,stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ ax=960&lt;br/&gt;/ by=600&lt;br/&gt;/ count = 0&lt;br/&gt;/ mm_rt = -1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-20=start]&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape pencil&amp;gt;&lt;br/&gt;/ shape = circle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (.5%, .5%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.count = 0;&lt;br/&gt;values.mm_rt = -1;&lt;br/&gt;]&lt;br/&gt;/ validresponse = (start)&lt;br/&gt;/ stimulustimes = [0=screen,start]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&lt;br/&gt;/ responseinterrupt = immediate&lt;br/&gt;/ branch = [if (trial.start.response=="start") trial.tap]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mouseposition&amp;gt;&lt;br/&gt;/ items= ("mouse xy position = &amp;lt;% trial.tap.responsex %&amp;gt;&amp;lt;% trial.tap.responsey %&amp;gt;")&lt;br/&gt;/ position = (50,80)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mouseinitialtime&amp;gt;&lt;br/&gt;/ items= ("mouse time = &amp;lt;%values.mm_rt%&amp;gt;")&lt;br/&gt;/ position = (50,50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clicktime&amp;gt;&lt;br/&gt;/ items= ("click time = &amp;lt;%trial.tap.latency%&amp;gt;")&lt;br/&gt;/ position = (50,60)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial tap&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.count += 1;&lt;br/&gt;]&lt;br/&gt;/ validresponse = (lbuttondown, mousemove)&lt;br/&gt;/ stimulustimes = [0=screen]&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;if (trial.tap.response == "mousemove" &amp;amp;&amp;amp; values.count == 1) {&lt;br/&gt;values.mm_rt = trial.tap.latency; values.count += 1; false;&lt;br/&gt;} else if (trial.tap.response == "mousemove" &amp;amp;&amp;amp; values.count &amp;gt; 1) {&lt;br/&gt;false;&lt;br/&gt;} else true;&lt;br/&gt;]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ draw = pencil&lt;br/&gt;/ showmousecursor=true&lt;br/&gt;/ branch = [&lt;br/&gt;trial.end&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ stimulustimes = [0=clearscreen, mouseposition, mouseinitialtime, clicktime]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text start&amp;gt;&lt;br/&gt;/ items = ("A")&lt;br/&gt;/ fontstyle = ("MS UI Gothic", 5.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ position = (960px,600px)&lt;br/&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape screen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (1920px, 1200px)&lt;br/&gt;/ position = (960px, 600px)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27640"&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;Thank you Dave, for your helpful script;)&lt;br/&gt;I have another question: is it possible to record the offset of the mouse movement instead of mouse click? So instead of clicking to terminate the trial, participants just stopped moving the mouse to end the trial.&lt;br/&gt;I didn't find a syntax something like "non-mousemove" and tried something like "!mousemove" but failed.&lt;br/&gt;&amp;nbsp;Thank you in advance;)</description><pubDate>Sat, 24 Aug 2019 02:39:19 GMT</pubDate><dc:creator>nakayama</dc:creator></item><item><title>RE: record initial movement time</title><link>https://forums.millisecond.com/Topic27640.aspx</link><description>&lt;div data-id="27639" class="if-quote-wrapper" unselectable="on" data-guid="1566560971068"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27639" 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="27639" 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="27639" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nakayama - 8/22/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27639"&gt;&lt;div class="if-quote-message-margin"&gt;Dear Inquisit Community&lt;br/&gt;My task is: participants started moving the mouse to click somewhere on the screen after clicking "A".&lt;br/&gt;I&amp;nbsp;recorded when the mouse started moving using "mousemove" by using "branch" to connect two trials (mousemove and click).&lt;br/&gt;Is there another way to record the "mousemove" latency without separating into two trial?&lt;br/&gt;? Because I wanted to avoid extra delays between trial initiation.&amp;nbsp;&lt;br/&gt;thank you in advance;)&lt;br/&gt;&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="27639"&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;You can use /isvalidresponse logic:&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns=[subject, blockcode, trialcode, trialnum, trialduration,trialtimeout,latency, response, &lt;br/&gt;values.mm_rt trial.tap.responsex,trial.tap.responsey,stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ ax=960&lt;br/&gt;/ by=600&lt;br/&gt;/ count = 0&lt;br/&gt;/ mm_rt = -1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-20=start]&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape pencil&amp;gt;&lt;br/&gt;/ shape = circle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (.5%, .5%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.count = 0;&lt;br/&gt;values.mm_rt = -1;&lt;br/&gt;]&lt;br/&gt;/ validresponse = (start)&lt;br/&gt;/ stimulustimes = [0=screen,start]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&lt;br/&gt;/ responseinterrupt = immediate&lt;br/&gt;/ branch = [if (trial.start.response=="start") trial.tap]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mouseposition&amp;gt;&lt;br/&gt;/ items= ("mouse xy position = &amp;lt;% trial.tap.responsex %&amp;gt;&amp;lt;% trial.tap.responsey %&amp;gt;")&lt;br/&gt;/ position = (50,80)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mouseinitialtime&amp;gt;&lt;br/&gt;/ items= ("mouse time = &amp;lt;%values.mm_rt%&amp;gt;")&lt;br/&gt;/ position = (50,50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clicktime&amp;gt;&lt;br/&gt;/ items= ("click time = &amp;lt;%trial.tap.latency%&amp;gt;")&lt;br/&gt;/ position = (50,60)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial tap&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.count += 1;&lt;br/&gt;]&lt;br/&gt;/ validresponse = (lbuttondown, mousemove)&lt;br/&gt;/ stimulustimes = [0=screen]&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;if (trial.tap.response == "mousemove" &amp;amp;&amp;amp; values.count == 1) {&lt;br/&gt;values.mm_rt = trial.tap.latency; values.count += 1; false;&lt;br/&gt;} else if (trial.tap.response == "mousemove" &amp;amp;&amp;amp; values.count &amp;gt; 1) {&lt;br/&gt;false;&lt;br/&gt;} else true;&lt;br/&gt;]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ draw = pencil&lt;br/&gt;/ showmousecursor=true&lt;br/&gt;/ branch = [&lt;br/&gt;trial.end&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ stimulustimes = [0=clearscreen, mouseposition, mouseinitialtime, clicktime]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text start&amp;gt;&lt;br/&gt;/ items = ("A")&lt;br/&gt;/ fontstyle = ("MS UI Gothic", 5.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ position = (960px,600px)&lt;br/&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape screen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (1920px, 1200px)&lt;br/&gt;/ position = (960px, 600px)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 23 Aug 2019 05:29:08 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>