﻿<?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  » Typing task Inquisit 4</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 09:59:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Typing task Inquisit 4</title><link>https://forums.millisecond.com/Topic15300.aspx</link><description>Hi there,&lt;br/&gt;I'm new at Inquisit and this is my first time on the forums, so I have no idea if I'm raising the topic correctly.&lt;br/&gt;&lt;br/&gt;I have been trying to create a typing task on Inquisit 4 that will allow me to know when someone first starts typing an answer&lt;br/&gt;and when someone stops typing. This part is currently working now, thanks to a lot of help from others, but it is the ending where I'm stuck.&amp;nbsp;&lt;br/&gt;I want to add in a button that can be clicked on with the mouse, so that people can move on when they are finished. &lt;br/&gt;However, &amp;nbsp;I can't seem to get that to work in Inquisit.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;This is the current script:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial exppos&amp;gt;&lt;br/&gt;/ stimulustimes = [1=blank,black,answer]&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ validresponse = (16,17,18,19,20,21,22,23,24,25,30,31,32,33,34,35,36,37,38,44,45,46,47,48,49,50,28,14,51,52,57,79,2)&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 16) values.letter = "q"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 17) values.letter = "w"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 18) values.letter = "e"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 19) values.letter = "r"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 20) values.letter = "t"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 21) values.letter = "y"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 22) values.letter = "u"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 23) values.letter = "i"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 24) values.letter = "o"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 25) values.letter = "p"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 30) values.letter = "a"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 31) values.letter = "s"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 32) values.letter = "d"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 33) values.letter = "f"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 34) values.letter = "g"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 35) values.letter = "h"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 36) values.letter = "j"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 37) values.letter = "k"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 38) values.letter = "l"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 44) values.letter = "z"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 45) values.letter = "x"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 46) values.letter = "c"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 47) values.letter = "v"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 48) values.letter = "b"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 49) values.letter = "n"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 50) values.letter = "m"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 28) values.letter = "~n"]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 57) values.letter = " "]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 51) values.letter = ","]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 52) values.letter = "."]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response != 14) {setitem(item.letter,values.letter,1); setitem(item.answer,values.answer,1)}]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response != 14) values.answer = concat(getitem(item.answer,1),getitem(item.letter,1))]&lt;br/&gt;/ ontrialend = [setitem(item.answer,values.answer,1)]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 14) values.answer = substring(getitem(item.answer,1),0,length(values.answer)-1)]&lt;br/&gt;/ ontrialend = [if (trial.exppos.response == 14) setitem(item.answer,values.answer,1)]&lt;br/&gt;/ ontrialend = [values.currenttime = values.currenttime + trial.exppos.latency]&lt;br/&gt;/ branch = [if (trial.exppos.response == 2) trial.end]&lt;br/&gt;/ branch = [trial.exppos]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.amount = 0; values.cumulative_time = 0; values.answer = ""; values.letter = "";values.currenttime = 0;values.select = values.select+1]&lt;br/&gt;/ stimulusframes = [1 = blank]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ timeout = 1&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item letter&amp;gt;&lt;br/&gt;/1 = ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item answer&amp;gt;&lt;br/&gt;/1 = ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/amount = 0&lt;br/&gt;/cumulative_time = 0&lt;br/&gt;/answer = ""&lt;br/&gt;/letter = ""&lt;br/&gt;/currenttime = 0&lt;br/&gt;/select = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text answer&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.answer%&amp;gt;")&lt;br/&gt;/ position = (50%,75.5%)&lt;br/&gt;/ erase = false&lt;br/&gt;/txbgcolor = (255,255,255)&lt;br/&gt;/ txcolor = (0, 0, 0)&lt;br/&gt;/ size = (39.5%,19%)&lt;br/&gt;/ valign = top&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;/ size = (100%,100%)&lt;br/&gt;/ color = (255,255,255)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape black&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ size = (40%,20%)&lt;br/&gt;/ color = (0,0,0)&lt;br/&gt;/ erase = false&lt;br/&gt;/ position = (50%,75%)&lt;br/&gt;/ valign = top&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;Is there any way to add in a button so that people can move on from this task with a simple mouseclick?&lt;br/&gt;&lt;br/&gt;A second question is: does it matter what kind of keyboard someone has? The current code makes use of the scancodes as a valid response,&lt;br/&gt;however, would it matter if some uses an azerty keyboard instead of a qwerty keyboard?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I hope my questions are clear.&lt;br/&gt;&lt;br/&gt;Many thanks in advance,&lt;br/&gt;&lt;br/&gt;Wenkuo</description><pubDate>Thu, 08 Jan 2015 02:50:04 GMT</pubDate><dc:creator>Wenkuo</dc:creator></item><item><title>RE: Typing task Inquisit 4</title><link>https://forums.millisecond.com/Topic15311.aspx</link><description>Thank you! It's working perfectly now.&amp;nbsp;</description><pubDate>Thu, 08 Jan 2015 02:50:04 GMT</pubDate><dc:creator>Wenkuo</dc:creator></item><item><title>RE: Typing task Inquisit 4</title><link>https://forums.millisecond.com/Topic15306.aspx</link><description>E.g.&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1=myopenended]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended myopenended&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date, time, subject, ..., openended.myopenended.firstcharlatency, openended.myopenended.lastcharlatency, ...]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 07 Jan 2015 03:57:59 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Typing task Inquisit 4</title><link>https://forums.millisecond.com/Topic15304.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;Thank you for the fast reply!&lt;br/&gt;&lt;br/&gt;I'm still unfamiliar with Inquisit and programming in general unfortunately, so this might sound a bit stupid,&amp;nbsp;&lt;br/&gt;but how do I go about combining the openended element and first/lastcharlatency? I've looked at the openended element before,&lt;br/&gt;but I had no idea that something like that was possible. &lt;br/&gt;&lt;br/&gt;Many thanks in advance,&lt;br/&gt;&lt;br/&gt;Wenkuo</description><pubDate>Wed, 07 Jan 2015 00:28:45 GMT</pubDate><dc:creator>Wenkuo</dc:creator></item><item><title>RE: Typing task Inquisit 4</title><link>https://forums.millisecond.com/Topic15301.aspx</link><description>&amp;gt; I have been trying to create a typing task on Inquisit 4 that will allow me to know when someone first starts typing an answer&lt;br/&gt;&amp;gt; and when someone stops typing&lt;br/&gt;&lt;br/&gt;It would have been easier for you to use a simple &amp;lt;openended&amp;gt; element and log its firstcharlatency and lastcharlatency properties.&lt;br/&gt;&lt;br/&gt;&amp;gt; I want to add in a button that can be clicked on with the mouse, so that people can move on when they are finished. &lt;br/&gt;&lt;br/&gt;Set &amp;lt;trial end&amp;gt;'s /inputdevice to mouse, have it display a &amp;lt;text&amp;gt; or &amp;lt;picture&amp;gt; element to serve as your "button", define that object as the trial's /validresponse. It is not possible to have multiple /inputdevices in a given &amp;lt;trial&amp;gt; element, i.e., you cannot have &amp;lt;trial exppos&amp;gt; accept input from both mouse and keyboard -- it's either one or the other.&lt;br/&gt; &lt;br/&gt;&amp;gt; A second question is: does it matter what kind of keyboard someone has? The current code makes use of the scancodes as&lt;br/&gt;&amp;gt; a valid response, however, would it matter if some uses an azerty keyboard instead of a qwerty keyboard? &lt;br/&gt;&lt;br/&gt;Yes, this matters. On a standard QWERTY keyboard, scancode 16 maps to "Q". On an AZERTY keyboard, scancode 16 maps to "A" (and so forth). The code you have in &amp;lt;trial exppos&amp;gt; will treat every keyboard as having a QWERTY layout.&lt;br/&gt;</description><pubDate>Tue, 06 Jan 2015 11:35:11 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>