﻿<?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  » PASAT-C</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 10 Sep 2026 15:17:27 GMT</lastBuildDate><ttl>20</ttl><item><title>PASAT-C</title><link>https://forums.millisecond.com/Topic22325.aspx</link><description>Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!</description><pubDate>Mon, 28 Aug 2017 08:14:19 GMT</pubDate><dc:creator>RiskyBehaviourLabUvic</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22337.aspx</link><description>&lt;div data-id="22332" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22332" 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="22332" 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="22332" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Saturday, August 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22332"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22331" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22331" 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="22331" 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="22331" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Saturday, August 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22331"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22330" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22330" 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="22330" 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="22330" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22330"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22329" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22329" 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="22329" 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="22329" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22329"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22328" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22328" 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="22328" 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="22328" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22328"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22327" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22327" 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="22327" 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="22327" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22327"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22326" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22326" 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="22326" 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="22326" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22326"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503933140862"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock&lt;a class="if-quote-goto quote-link" href="#" data-id="22326"&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;Count the trials (by using &amp;lt;values&amp;gt;, for example) and /branch to a separate &amp;lt;trial&amp;gt; presenting what you termed "options" if the counter hits 20. Manipulate the timer as needed based on the response, reset the value to 0 and repeat.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22327"&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;Here's a super-basic example to illustrate the general idea:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ trialcounter = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ bgstim = (myclock)&lt;br/&gt;/ trials = [1-20=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter +=1;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [if(values.trialcounter == 5)trial.optionstrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial optionstrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter = 0; clock.myclock.pause();]&lt;br/&gt;/ stimulusframes = [1=optionstext]&lt;br/&gt;/ validresponse = (23, 32)&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 23) clock.myclock.timeout=clock.myclock.timeout+10000]&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 32) clock.myclock.timeout=clock.myclock.timeout-5000]&lt;br/&gt;/ ontrialend = [clock.myclock.start();]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;clock myclock&amp;gt;&lt;br/&gt;/ timeout = 50000&lt;br/&gt;/ mode = timer&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/clock&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Trial # &amp;lt;%values.trialcounter%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text optionstext&amp;gt;&lt;br/&gt;/ items = ("Press 'i' to increase the timer, press 'd' to decrease.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22328"&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;the time out seems to be adding or subtracting from the initial clock duration not from the running duration. For example if i had an initial time of 1 minute and 15 seconds elapsed, and i chose to decrease &amp;nbsp;by another 10 seconds, my &amp;nbsp;clock subtracts 10 seconds from 60 and give me 50 seconds when it unpauses instead of 35 seconds.&lt;a class="if-quote-goto quote-link" href="#" data-id="22329"&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;got it ! I changed it to clock.myclock.remainingitme&lt;a class="if-quote-goto quote-link" href="#" data-id="22330"&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;Where do i find the inquisite char codes ( or keys) i know that space is 57 but where do i find the rest?&lt;a class="if-quote-goto quote-link" href="#" data-id="22331"&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;Found it!&amp;nbsp;&lt;br/&gt;&lt;a href="http://www.millisecond.com/support/docs/v5/html/language/scancodes.htm"&gt;&lt;a href="http://www.millisecond.com/support/docs/v5/html/language/scancodes.htm"&gt;http://www.millisecond.com/support/docs/v5/html/language/scancodes.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22332"&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;To add: You can also use Tools - &amp;gt; Keyboard Scancodes... in Inquisit Lab to figure out a given key's numerical scancode. The table in the documentation you linked assumes an English-language QWERTY keyboard layout, scancodes will be different for some other layouts (e.g. French-language AZERTY).&lt;br/&gt;</description><pubDate>Mon, 28 Aug 2017 08:14:19 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22332.aspx</link><description>&lt;div data-id="22331" class="if-quote-wrapper" unselectable="on" data-guid="1503785249517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22331" 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="22331" 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="22331" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Saturday, August 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22331"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22330" class="if-quote-wrapper" unselectable="on" data-guid="1503785249517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22330" 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="22330" 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="22330" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22330"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22329" class="if-quote-wrapper" unselectable="on" data-guid="1503785249517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22329" 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="22329" 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="22329" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22329"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22328" class="if-quote-wrapper" unselectable="on" data-guid="1503785249517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22328" 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="22328" 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="22328" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22328"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22327" class="if-quote-wrapper" unselectable="on" data-guid="1503785249517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22327" 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="22327" 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="22327" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22327"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22326" class="if-quote-wrapper" unselectable="on" data-guid="1503785249517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22326" 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="22326" 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="22326" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22326"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503785249517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock&lt;a class="if-quote-goto quote-link" href="#" data-id="22326"&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;Count the trials (by using &amp;lt;values&amp;gt;, for example) and /branch to a separate &amp;lt;trial&amp;gt; presenting what you termed "options" if the counter hits 20. Manipulate the timer as needed based on the response, reset the value to 0 and repeat.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22327"&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;Here's a super-basic example to illustrate the general idea:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ trialcounter = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ bgstim = (myclock)&lt;br/&gt;/ trials = [1-20=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter +=1;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [if(values.trialcounter == 5)trial.optionstrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial optionstrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter = 0; clock.myclock.pause();]&lt;br/&gt;/ stimulusframes = [1=optionstext]&lt;br/&gt;/ validresponse = (23, 32)&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 23) clock.myclock.timeout=clock.myclock.timeout+10000]&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 32) clock.myclock.timeout=clock.myclock.timeout-5000]&lt;br/&gt;/ ontrialend = [clock.myclock.start();]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;clock myclock&amp;gt;&lt;br/&gt;/ timeout = 50000&lt;br/&gt;/ mode = timer&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/clock&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Trial # &amp;lt;%values.trialcounter%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text optionstext&amp;gt;&lt;br/&gt;/ items = ("Press 'i' to increase the timer, press 'd' to decrease.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22328"&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;the time out seems to be adding or subtracting from the initial clock duration not from the running duration. For example if i had an initial time of 1 minute and 15 seconds elapsed, and i chose to decrease &amp;nbsp;by another 10 seconds, my &amp;nbsp;clock subtracts 10 seconds from 60 and give me 50 seconds when it unpauses instead of 35 seconds.&lt;a class="if-quote-goto quote-link" href="#" data-id="22329"&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;got it ! I changed it to clock.myclock.remainingitme&lt;a class="if-quote-goto quote-link" href="#" data-id="22330"&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;Where do i find the inquisite char codes ( or keys) i know that space is 57 but where do i find the rest?&lt;a class="if-quote-goto quote-link" href="#" data-id="22331"&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;Found it!&amp;nbsp;&lt;br/&gt;&lt;a href="http://www.millisecond.com/support/docs/v5/html/language/scancodes.htm"&gt;http://www.millisecond.com/support/docs/v5/html/language/scancodes.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sat, 26 Aug 2017 15:07:49 GMT</pubDate><dc:creator>RiskyBehaviourLabUvic</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22331.aspx</link><description>&lt;div data-id="22330" class="if-quote-wrapper" unselectable="on" data-guid="1503785128877"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22330" 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="22330" 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="22330" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22330"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22329" class="if-quote-wrapper" unselectable="on" data-guid="1503785128877"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22329" 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="22329" 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="22329" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22329"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22328" class="if-quote-wrapper" unselectable="on" data-guid="1503785128877"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22328" 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="22328" 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="22328" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22328"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22327" class="if-quote-wrapper" unselectable="on" data-guid="1503785128877"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22327" 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="22327" 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="22327" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22327"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22326" class="if-quote-wrapper" unselectable="on" data-guid="1503785128877"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22326" 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="22326" 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="22326" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22326"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503785128877"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock&lt;a class="if-quote-goto quote-link" href="#" data-id="22326"&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;Count the trials (by using &amp;lt;values&amp;gt;, for example) and /branch to a separate &amp;lt;trial&amp;gt; presenting what you termed "options" if the counter hits 20. Manipulate the timer as needed based on the response, reset the value to 0 and repeat.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22327"&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;Here's a super-basic example to illustrate the general idea:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ trialcounter = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ bgstim = (myclock)&lt;br/&gt;/ trials = [1-20=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter +=1;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [if(values.trialcounter == 5)trial.optionstrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial optionstrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter = 0; clock.myclock.pause();]&lt;br/&gt;/ stimulusframes = [1=optionstext]&lt;br/&gt;/ validresponse = (23, 32)&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 23) clock.myclock.timeout=clock.myclock.timeout+10000]&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 32) clock.myclock.timeout=clock.myclock.timeout-5000]&lt;br/&gt;/ ontrialend = [clock.myclock.start();]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;clock myclock&amp;gt;&lt;br/&gt;/ timeout = 50000&lt;br/&gt;/ mode = timer&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/clock&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Trial # &amp;lt;%values.trialcounter%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text optionstext&amp;gt;&lt;br/&gt;/ items = ("Press 'i' to increase the timer, press 'd' to decrease.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22328"&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;the time out seems to be adding or subtracting from the initial clock duration not from the running duration. For example if i had an initial time of 1 minute and 15 seconds elapsed, and i chose to decrease &amp;nbsp;by another 10 seconds, my &amp;nbsp;clock subtracts 10 seconds from 60 and give me 50 seconds when it unpauses instead of 35 seconds.&lt;a class="if-quote-goto quote-link" href="#" data-id="22329"&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;got it ! I changed it to clock.myclock.remainingitme&lt;a class="if-quote-goto quote-link" href="#" data-id="22330"&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;Where do i find the inquisite char codes ( or keys) i know that space is 57 but where do i find the rest?</description><pubDate>Sat, 26 Aug 2017 15:06:16 GMT</pubDate><dc:creator>RiskyBehaviourLabUvic</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22330.aspx</link><description>&lt;div data-id="22329" class="if-quote-wrapper" unselectable="on" data-guid="1503727216482"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22329" 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="22329" 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="22329" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22329"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22328" class="if-quote-wrapper" unselectable="on" data-guid="1503727216482"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22328" 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="22328" 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="22328" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22328"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22327" class="if-quote-wrapper" unselectable="on" data-guid="1503727216482"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22327" 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="22327" 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="22327" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22327"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22326" class="if-quote-wrapper" unselectable="on" data-guid="1503727216482"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22326" 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="22326" 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="22326" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22326"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503727216482"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock&lt;a class="if-quote-goto quote-link" href="#" data-id="22326"&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;Count the trials (by using &amp;lt;values&amp;gt;, for example) and /branch to a separate &amp;lt;trial&amp;gt; presenting what you termed "options" if the counter hits 20. Manipulate the timer as needed based on the response, reset the value to 0 and repeat.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22327"&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;Here's a super-basic example to illustrate the general idea:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ trialcounter = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ bgstim = (myclock)&lt;br/&gt;/ trials = [1-20=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter +=1;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [if(values.trialcounter == 5)trial.optionstrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial optionstrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter = 0; clock.myclock.pause();]&lt;br/&gt;/ stimulusframes = [1=optionstext]&lt;br/&gt;/ validresponse = (23, 32)&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 23) clock.myclock.timeout=clock.myclock.timeout+10000]&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 32) clock.myclock.timeout=clock.myclock.timeout-5000]&lt;br/&gt;/ ontrialend = [clock.myclock.start();]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;clock myclock&amp;gt;&lt;br/&gt;/ timeout = 50000&lt;br/&gt;/ mode = timer&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/clock&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Trial # &amp;lt;%values.trialcounter%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text optionstext&amp;gt;&lt;br/&gt;/ items = ("Press 'i' to increase the timer, press 'd' to decrease.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22328"&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;the time out seems to be adding or subtracting from the initial clock duration not from the running duration. For example if i had an initial time of 1 minute and 15 seconds elapsed, and i chose to decrease &amp;nbsp;by another 10 seconds, my &amp;nbsp;clock subtracts 10 seconds from 60 and give me 50 seconds when it unpauses instead of 35 seconds.&lt;a class="if-quote-goto quote-link" href="#" data-id="22329"&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;got it ! I changed it to clock.myclock.remainingitme</description><pubDate>Fri, 25 Aug 2017 23:00:45 GMT</pubDate><dc:creator>RiskyBehaviourLabUvic</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22329.aspx</link><description>&lt;div data-id="22328" class="if-quote-wrapper" unselectable="on" data-guid="1503725056164"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22328" 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="22328" 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="22328" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22328"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22327" class="if-quote-wrapper" unselectable="on" data-guid="1503725056164"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22327" 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="22327" 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="22327" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22327"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22326" class="if-quote-wrapper" unselectable="on" data-guid="1503725056164"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22326" 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="22326" 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="22326" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22326"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503725056164"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock&lt;a class="if-quote-goto quote-link" href="#" data-id="22326"&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;Count the trials (by using &amp;lt;values&amp;gt;, for example) and /branch to a separate &amp;lt;trial&amp;gt; presenting what you termed "options" if the counter hits 20. Manipulate the timer as needed based on the response, reset the value to 0 and repeat.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22327"&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;Here's a super-basic example to illustrate the general idea:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ trialcounter = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ bgstim = (myclock)&lt;br/&gt;/ trials = [1-20=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter +=1;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [if(values.trialcounter == 5)trial.optionstrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial optionstrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter = 0; clock.myclock.pause();]&lt;br/&gt;/ stimulusframes = [1=optionstext]&lt;br/&gt;/ validresponse = (23, 32)&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 23) clock.myclock.timeout=clock.myclock.timeout+10000]&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 32) clock.myclock.timeout=clock.myclock.timeout-5000]&lt;br/&gt;/ ontrialend = [clock.myclock.start();]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;clock myclock&amp;gt;&lt;br/&gt;/ timeout = 50000&lt;br/&gt;/ mode = timer&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/clock&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Trial # &amp;lt;%values.trialcounter%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text optionstext&amp;gt;&lt;br/&gt;/ items = ("Press 'i' to increase the timer, press 'd' to decrease.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22328"&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;the time out seems to be adding or subtracting from the initial clock duration not from the running duration. For example if i had an initial time of 1 minute and 15 seconds elapsed, and i chose to decrease &amp;nbsp;by another 10 seconds, my &amp;nbsp;clock subtracts 10 seconds from 60 and give me 50 seconds when it unpauses instead of 35 seconds.</description><pubDate>Fri, 25 Aug 2017 22:26:06 GMT</pubDate><dc:creator>RiskyBehaviourLabUvic</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22328.aspx</link><description>&lt;div data-id="22327" class="if-quote-wrapper" unselectable="on" data-guid="1503718743283"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22327" 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="22327" 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="22327" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22327"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22326" class="if-quote-wrapper" unselectable="on" data-guid="1503718743283"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22326" 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="22326" 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="22326" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22326"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503718743283"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock&lt;a class="if-quote-goto quote-link" href="#" data-id="22326"&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;Count the trials (by using &amp;lt;values&amp;gt;, for example) and /branch to a separate &amp;lt;trial&amp;gt; presenting what you termed "options" if the counter hits 20. Manipulate the timer as needed based on the response, reset the value to 0 and repeat.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22327"&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;Here's a super-basic example to illustrate the general idea:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ trialcounter = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ bgstim = (myclock)&lt;br/&gt;/ trials = [1-20=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter +=1;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [if(values.trialcounter == 5)trial.optionstrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial optionstrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcounter = 0; clock.myclock.pause();]&lt;br/&gt;/ stimulusframes = [1=optionstext]&lt;br/&gt;/ validresponse = (23, 32)&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 23) clock.myclock.timeout=clock.myclock.timeout+10000]&lt;br/&gt;/ ontrialend = [if(trial.optionstrial.response == 32) clock.myclock.timeout=clock.myclock.timeout-5000]&lt;br/&gt;/ ontrialend = [clock.myclock.start();]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;clock myclock&amp;gt;&lt;br/&gt;/ timeout = 50000&lt;br/&gt;/ mode = timer&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/clock&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Trial # &amp;lt;%values.trialcounter%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text optionstext&amp;gt;&lt;br/&gt;/ items = ("Press 'i' to increase the timer, press 'd' to decrease.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps!&lt;br/&gt;</description><pubDate>Fri, 25 Aug 2017 20:39:41 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22327.aspx</link><description>&lt;div data-id="22326" class="if-quote-wrapper" unselectable="on" data-guid="1503714066215"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22326" 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="22326" 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="22326" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22326"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503714066215"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock&lt;a class="if-quote-goto quote-link" href="#" data-id="22326"&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;Count the trials (by using &amp;lt;values&amp;gt;, for example) and /branch to a separate &amp;lt;trial&amp;gt; presenting what you termed "options" if the counter hits 20. Manipulate the timer as needed based on the response, reset the value to 0 and repeat.&lt;br/&gt;</description><pubDate>Fri, 25 Aug 2017 19:22:54 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: PASAT-C</title><link>https://forums.millisecond.com/Topic22326.aspx</link><description>&lt;div data-id="22325" class="if-quote-wrapper" unselectable="on" data-guid="1503706974616"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22325" 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="22325" 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="22325" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;RiskyBehaviourLabUvic - Friday, August 25, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22325"&gt;&lt;div class="if-quote-message-margin"&gt;Hello again! I'm working on the PASAT-C &amp;nbsp;experiment, and I want to insert a timer that would run down from 15 minutes in level 3. The timer would run down as the subject is doing the experiment showing them how much time is left. I would like to control the timer so that I could take away time from it if the subject gets the wrong answer. Any help is very appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="22325"&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;So i added a clock with 15 minutes on it at level three using:&lt;br/&gt;trial.level3.insertstimulusframe(clock.timer1, 1) &lt;br/&gt;&lt;br/&gt;where clock.timer1 counts down from 15 minutes. My challenge now is to stop level 3 every 20 trials and present the subject with options that would either decrease the time on the clock or increase the time on the clock</description><pubDate>Fri, 25 Aug 2017 17:25:00 GMT</pubDate><dc:creator>RiskyBehaviourLabUvic</dc:creator></item></channel></rss>