﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Progressbar is supposed to stop</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 09 Mar 2026 19:08:55 GMT</lastBuildDate><ttl>20</ttl><item><title>Progressbar is supposed to stop</title><link>https://forums.millisecond.com/Topic35574.aspx</link><description>Hello, i need help. English is not my first language so please apologize for any mistakes. &lt;br/&gt;&lt;br/&gt;I want to programm a training for self-esteem and i need a progress bar. I already programmed the progressbar: it rises if you give a correct answer but i want it to fall if you give a wrong answer and i want it to stop rising at a specific point. Right now it rises out of the screen.&lt;br/&gt;&lt;br/&gt;I attached the file. I appreciate any help. &lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 31 Jul 2023 13:17:36 GMT</pubDate><dc:creator>Kairi</dc:creator></item><item><title>RE: Progressbar is supposed to stop</title><link>https://forums.millisecond.com/Topic35585.aspx</link><description>&lt;blockquote data-id="35582" class="if-quote-wrapper" unselectable="on" data-guid="1690809034724" id="if_insertedNode_1690809034266" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35582" 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="35582" 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="35582" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/31/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35582"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35580" class="if-quote-wrapper" unselectable="on" data-guid="1690809034724" id="if_insertedNode_1690802260830" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35580" 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="35580" 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="35580" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Kairi - 7/29/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35580"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35578" class="if-quote-wrapper" unselectable="on" data-guid="1690809034724" id="if_insertedNode_1690626591731" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35578" 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="35578" 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="35578" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/29/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35578"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35574" class="if-quote-wrapper" unselectable="on" data-guid="1690809034724" id="if_insertedNode_1690592075671" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35574" 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="35574" 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="35574" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Kairi - 7/28/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35574"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello, i need help. English is not my first language so please apologize for any mistakes. &lt;br/&gt;&lt;br/&gt;I want to programm a training for self-esteem and i need a progress bar. I already programmed the progressbar: it rises if you give a correct answer but i want it to fall if you give a wrong answer and i want it to stop rising at a specific point. Right now it rises out of the screen.&lt;br/&gt;&lt;br/&gt;I attached the file. I appreciate any help. &lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35574"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You need to be more specific. You don't explain by how *much* you want the bar to rise or fall. You don't explain at what "speciic point [you] want it to stop rising." You don't explain at what size or level or position the bar should start at.&lt;br/&gt;&lt;br/&gt;Also, you should at a minimum explain the reasoning behind any code you share. Name the relevant elements exactly as they are called in the script. Explain what you did and why.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35578"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thank you for your reply. &lt;br/&gt;I am not very familiar with Inquisit, so i dont really know how much i want it to rise or fall. i got the code from my boss and i am supposed to change some things, but it is my first time working with inquisit and i am not really sure where and how i should change something &lt;br/&gt;My script says right now:&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 1) values.ChangeBarSizeY = values.ChangeBarSizeY + 10] &lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 1) values.ChangeBarPositionY = values.ChangeBarPositionY - 0.50]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==1 &amp;amp;&amp;amp; expressions.ColorG &amp;gt;251) values.ChangeColorR = values.ChangeColorR - 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==1 &amp;amp;&amp;amp; expressions.ColorG &amp;lt;251) values.ChangeColorG = values.ChangeColorG + 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 0) values.ChangeBarSizeY = values.ChangeBarSizeY - 10] &lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 0) values.ChangeBarPositionY = values.ChangeBarPositionY + 0.5]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==0 &amp;amp;&amp;amp; expressions.ColorR &amp;gt;251) values.ChangeColorG = values.ChangeColorG - 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==0 &amp;amp;&amp;amp; expressions.ColorR &amp;lt;251) values.ChangeColorR = values.ChangeColorR + 3.00]&lt;br/&gt;&lt;br/&gt;So, the bar changes -10 and +10, but i think 0.5 would be enough to rise and fall. &lt;br/&gt;&lt;br/&gt;the script for the bar is the following:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/fixationduration = 500&lt;br/&gt;/fixation_posttrialpause = 100&lt;br/&gt;/target_posttrialpause = 0&lt;br/&gt;/targetduration = 3000&lt;br/&gt;/wordtype = 0&lt;br/&gt;/positiveword = ""&lt;br/&gt;/negativeword = ""&lt;br/&gt;/ChangeBarSizeY = 0&lt;br/&gt;/ChangeBarPositionY = 0&lt;br/&gt;/ChangeColorR = 0&lt;br/&gt;/ChangeColorG = 0&lt;br/&gt;/select = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions &amp;gt;&lt;br/&gt;/BarSizeY = 39% + values.ChangeBarSizeY&lt;br/&gt;/BarPositionY = 61 + values.ChangeBarPositionY&lt;br/&gt;/ColorR = 255 + values.ChangeColorR&lt;br/&gt;/ColorG = 255 + values.ChangeColorG&lt;br/&gt;/MaxBarSizeY = 100  &lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape bar&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ erase = false&lt;br/&gt;/ color = (expressions.ColorR ,expressions.ColorG ,0)&lt;br/&gt;/ position = (96, expressions.BarPositionY)&lt;br/&gt;/ size = (50,900)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;The way the bar starts right now is ok. I want it to start there. &lt;br/&gt;There are no levels. The participants see a sentence and after the sentence they see a word. every sentence has a positive and a negative word. The sentences are situations and the words are interpretations of these situations. for example:&lt;br/&gt;Sentence: A friend comments on your decision.&lt;br/&gt;positive: supporting&lt;br/&gt;negative:  criticizing&lt;br/&gt;The answer is correct if the participant says &lt;br/&gt;a) that the positive word and the sentence are connected.&lt;br/&gt;b) that the negative word and the sentence are not connected.&lt;br/&gt;The answer is wrong of the participant says otherwise.&lt;br/&gt;If the answer is correct they see a positive smiley&lt;br/&gt;and if the answer is wrong they see a negative smiley. &lt;br/&gt;&lt;br/&gt;The participants have to options:&lt;br/&gt;1) press "S" for " no, the sentences and word are not connected"&lt;br/&gt;2) press "L" for "yes, the sentence and word are connected"&lt;br/&gt;They see 30 sentences that are presented at one time with the positive word and one time with the negative word, in total 60 sentences per training. The sentences are randomly presented. &lt;br/&gt;We want them to learn to answer correctly so we want a bar that rises when they give a correct answer and falls if they give the wrong answer. I dont really know at what "specific point" the bar should stop. We want the bar to stop, so the participant knows they can not improve, so it should be a goal for them to keep the bar on top. I just dont want the bar to go out of the screen. &lt;br/&gt;&lt;br/&gt;I got the code of my boss who did a similar experiment before. They made a bar too, but there was no option to stop the bar. i copied the code for the bar and for this experiment we decided that the bar should stop, but i cant figure out how i can do that. &lt;br/&gt;&lt;br/&gt;If you need any more information,&amp;nbsp; I will gladly give it to you&amp;nbsp; &lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35580"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt; So, the bar changes -10 and +10, but i think 0.5 would be enough to rise and fall. &lt;br/&gt;&lt;br/&gt;The bar changes by -10 and +10 of &lt;strong&gt;what&lt;/strong&gt;? What's the unit supposed to be here? (Same goes if you change to 0.5 -- 0.5 of what?)&lt;br/&gt;&lt;br/&gt;What the code does, as you posted it, is not really changing the bar &lt;strong&gt;size&lt;/strong&gt;. It just moves the bar around, per&lt;br/&gt;&lt;br/&gt;/BarPositionY = 61 + values.ChangeBarPositionY&lt;br/&gt;&lt;br/&gt;where the y position is 61 (again, of &lt;strong&gt;what&lt;/strong&gt;? Percentage of screen height?) plus whatever the change is.&lt;br/&gt;&lt;br/&gt;The bar has a fixed size of &lt;br/&gt;&lt;br/&gt;/ size = (50,900)&lt;br/&gt;&lt;br/&gt;where it is again unclear what the unit is supposed to be. I don't see how you expect that to work across different display sizes, where 900 of whatever unit (e.g. pixels) may or may not be available in height at all.&lt;br/&gt;&lt;br/&gt;You have not answered my question regarding when and on what basis you want the bar's size (or more accurately: position, in the code as it exists) to change anymore.&lt;br/&gt;&lt;br/&gt;Perhaps you can talk to your boss, figure out precisely what he wants, and then we might make some headway. What you provided so far is insufficient to give you any concrete advice. It is not clear what you (or your boss) want.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35582"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;For what it's worth, if one wanted to actually manipulate the bar's height, within a defined min.- max. range, one would do something like this:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;values&amp;gt;&lt;br/&gt;/ barheight = 50% // initial height of the bar&lt;br/&gt;/ stepsize = 1.5% // amount by which the bar's height is in- or decreased based on correct vs. incorrect response&lt;br/&gt;/ maxbarheight = 99.5% // maximum bar height&lt;br/&gt;/ minbarheight = 0.5% // minimum bar height&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block exampleblock&amp;gt;&lt;br/&gt;/ trials = [1-200 = trial.exampletrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial exampletrial&amp;gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// if we have a correct response&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (trial.exampletrial.correct) {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// increase bar height by defined step size&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.barheight += values.stepsize;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// make sure bar height does not exceed allowable maximum height&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.barheight = min(values.barheight, values.maxbarheight);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// otherwise&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// decrease bar height by defined step size&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.barheight -= values.stepsize;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// make sure bar height doesn't fall below allowable minimum height&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.barheight = max(values.barheight, values.minbarheight);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=clearscreen, text.exampletext, shape.bar]&lt;br/&gt;/ validresponse = ("L", "S")&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text exampletext&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;L = correct response, bar grows&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;S = wrong response, bar shrinks&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The current bar height is &amp;lt;%values.barheight%&amp;gt;.&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;")&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape bar&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = cadetblue&lt;br/&gt;/ height = values.barheight&lt;br/&gt;/ width = 4%&lt;br/&gt;/ position = (90%, 99.75%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;[/code]</description><pubDate>Mon, 31 Jul 2023 13:17:36 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Progressbar is supposed to stop</title><link>https://forums.millisecond.com/Topic35582.aspx</link><description>&lt;blockquote data-id="35580" class="if-quote-wrapper" unselectable="on" data-guid="1690802262272" id="if_insertedNode_1690802260830" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35580" 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="35580" 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="35580" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Kairi - 7/29/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35580"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35578" class="if-quote-wrapper" unselectable="on" data-guid="1690802262272" id="if_insertedNode_1690626591731" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35578" 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="35578" 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="35578" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/29/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35578"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35574" class="if-quote-wrapper" unselectable="on" data-guid="1690802262272" id="if_insertedNode_1690592075671" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35574" 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="35574" 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="35574" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Kairi - 7/28/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35574"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello, i need help. English is not my first language so please apologize for any mistakes. &lt;br/&gt;&lt;br/&gt;I want to programm a training for self-esteem and i need a progress bar. I already programmed the progressbar: it rises if you give a correct answer but i want it to fall if you give a wrong answer and i want it to stop rising at a specific point. Right now it rises out of the screen.&lt;br/&gt;&lt;br/&gt;I attached the file. I appreciate any help. &lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35574"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You need to be more specific. You don't explain by how *much* you want the bar to rise or fall. You don't explain at what "speciic point [you] want it to stop rising." You don't explain at what size or level or position the bar should start at.&lt;br/&gt;&lt;br/&gt;Also, you should at a minimum explain the reasoning behind any code you share. Name the relevant elements exactly as they are called in the script. Explain what you did and why.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35578"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thank you for your reply. &lt;br/&gt;I am not very familiar with Inquisit, so i dont really know how much i want it to rise or fall. i got the code from my boss and i am supposed to change some things, but it is my first time working with inquisit and i am not really sure where and how i should change something &lt;br/&gt;My script says right now:&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 1) values.ChangeBarSizeY = values.ChangeBarSizeY + 10] &lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 1) values.ChangeBarPositionY = values.ChangeBarPositionY - 0.50]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==1 &amp;amp;&amp;amp; expressions.ColorG &amp;gt;251) values.ChangeColorR = values.ChangeColorR - 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==1 &amp;amp;&amp;amp; expressions.ColorG &amp;lt;251) values.ChangeColorG = values.ChangeColorG + 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 0) values.ChangeBarSizeY = values.ChangeBarSizeY - 10] &lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 0) values.ChangeBarPositionY = values.ChangeBarPositionY + 0.5]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==0 &amp;amp;&amp;amp; expressions.ColorR &amp;gt;251) values.ChangeColorG = values.ChangeColorG - 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==0 &amp;amp;&amp;amp; expressions.ColorR &amp;lt;251) values.ChangeColorR = values.ChangeColorR + 3.00]&lt;br/&gt;&lt;br/&gt;So, the bar changes -10 and +10, but i think 0.5 would be enough to rise and fall. &lt;br/&gt;&lt;br/&gt;the script for the bar is the following:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/fixationduration = 500&lt;br/&gt;/fixation_posttrialpause = 100&lt;br/&gt;/target_posttrialpause = 0&lt;br/&gt;/targetduration = 3000&lt;br/&gt;/wordtype = 0&lt;br/&gt;/positiveword = ""&lt;br/&gt;/negativeword = ""&lt;br/&gt;/ChangeBarSizeY = 0&lt;br/&gt;/ChangeBarPositionY = 0&lt;br/&gt;/ChangeColorR = 0&lt;br/&gt;/ChangeColorG = 0&lt;br/&gt;/select = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions &amp;gt;&lt;br/&gt;/BarSizeY = 39% + values.ChangeBarSizeY&lt;br/&gt;/BarPositionY = 61 + values.ChangeBarPositionY&lt;br/&gt;/ColorR = 255 + values.ChangeColorR&lt;br/&gt;/ColorG = 255 + values.ChangeColorG&lt;br/&gt;/MaxBarSizeY = 100  &lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape bar&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ erase = false&lt;br/&gt;/ color = (expressions.ColorR ,expressions.ColorG ,0)&lt;br/&gt;/ position = (96, expressions.BarPositionY)&lt;br/&gt;/ size = (50,900)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;The way the bar starts right now is ok. I want it to start there. &lt;br/&gt;There are no levels. The participants see a sentence and after the sentence they see a word. every sentence has a positive and a negative word. The sentences are situations and the words are interpretations of these situations. for example:&lt;br/&gt;Sentence: A friend comments on your decision.&lt;br/&gt;positive: supporting&lt;br/&gt;negative:  criticizing&lt;br/&gt;The answer is correct if the participant says &lt;br/&gt;a) that the positive word and the sentence are connected.&lt;br/&gt;b) that the negative word and the sentence are not connected.&lt;br/&gt;The answer is wrong of the participant says otherwise.&lt;br/&gt;If the answer is correct they see a positive smiley&lt;br/&gt;and if the answer is wrong they see a negative smiley. &lt;br/&gt;&lt;br/&gt;The participants have to options:&lt;br/&gt;1) press "S" for " no, the sentences and word are not connected"&lt;br/&gt;2) press "L" for "yes, the sentence and word are connected"&lt;br/&gt;They see 30 sentences that are presented at one time with the positive word and one time with the negative word, in total 60 sentences per training. The sentences are randomly presented. &lt;br/&gt;We want them to learn to answer correctly so we want a bar that rises when they give a correct answer and falls if they give the wrong answer. I dont really know at what "specific point" the bar should stop. We want the bar to stop, so the participant knows they can not improve, so it should be a goal for them to keep the bar on top. I just dont want the bar to go out of the screen. &lt;br/&gt;&lt;br/&gt;I got the code of my boss who did a similar experiment before. They made a bar too, but there was no option to stop the bar. i copied the code for the bar and for this experiment we decided that the bar should stop, but i cant figure out how i can do that. &lt;br/&gt;&lt;br/&gt;If you need any more information,&amp;nbsp; I will gladly give it to you&amp;nbsp; &lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35580"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt; So, the bar changes -10 and +10, but i think 0.5 would be enough to rise and fall. &lt;br/&gt;&lt;br/&gt;The bar changes by -10 and +10 of &lt;strong&gt;what&lt;/strong&gt;? What's the unit supposed to be here? (Same goes if you change to 0.5 -- 0.5 of what?)&lt;br/&gt;&lt;br/&gt;What the code does, as you posted it, is not really changing the bar &lt;strong&gt;size&lt;/strong&gt;. It just moves the bar around, per&lt;br/&gt;&lt;br/&gt;/BarPositionY = 61 + values.ChangeBarPositionY&lt;br/&gt;&lt;br/&gt;where the y position is 61 (again, of &lt;strong&gt;what&lt;/strong&gt;? Percentage of screen height?) plus whatever the change is.&lt;br/&gt;&lt;br/&gt;The bar has a fixed size of &lt;br/&gt;&lt;br/&gt;/ size = (50,900)&lt;br/&gt;&lt;br/&gt;where it is again unclear what the unit is supposed to be. I don't see how you expect that to work across different display sizes, where 900 of whatever unit (e.g. pixels) may or may not be available in height at all.&lt;br/&gt;&lt;br/&gt;You have not answered my question regarding when and on what basis you want the bar's size (or more accurately: position, in the code as it exists) to change anymore.&lt;br/&gt;&lt;br/&gt;Perhaps you can talk to your boss, figure out precisely what he wants, and then we might make some headway. What you provided so far is insufficient to give you any concrete advice. It is not clear what you (or your boss) want.&lt;br/&gt;</description><pubDate>Mon, 31 Jul 2023 11:27:17 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Progressbar is supposed to stop</title><link>https://forums.millisecond.com/Topic35580.aspx</link><description>&lt;blockquote data-id="35578" class="if-quote-wrapper" unselectable="on" data-guid="1690626593133" id="if_insertedNode_1690626591731" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35578" 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="35578" 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="35578" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/29/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35578"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35574" class="if-quote-wrapper" unselectable="on" data-guid="1690626593133" id="if_insertedNode_1690592075671" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35574" 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="35574" 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="35574" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Kairi - 7/28/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35574"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello, i need help. English is not my first language so please apologize for any mistakes. &lt;br/&gt;&lt;br/&gt;I want to programm a training for self-esteem and i need a progress bar. I already programmed the progressbar: it rises if you give a correct answer but i want it to fall if you give a wrong answer and i want it to stop rising at a specific point. Right now it rises out of the screen.&lt;br/&gt;&lt;br/&gt;I attached the file. I appreciate any help. &lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35574"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You need to be more specific. You don't explain by how *much* you want the bar to rise or fall. You don't explain at what "speciic point [you] want it to stop rising." You don't explain at what size or level or position the bar should start at.&lt;br/&gt;&lt;br/&gt;Also, you should at a minimum explain the reasoning behind any code you share. Name the relevant elements exactly as they are called in the script. Explain what you did and why.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35578"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thank you for your reply. &lt;br/&gt;I am not very familiar with Inquisit, so i dont really know how much i want it to rise or fall. i got the code from my boss and i am supposed to change some things, but it is my first time working with inquisit and i am not really sure where and how i should change something &lt;br/&gt;My script says right now:&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 1) values.ChangeBarSizeY = values.ChangeBarSizeY + 10] &lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 1) values.ChangeBarPositionY = values.ChangeBarPositionY - 0.50]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==1 &amp;amp;&amp;amp; expressions.ColorG &amp;gt;251) values.ChangeColorR = values.ChangeColorR - 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==1 &amp;amp;&amp;amp; expressions.ColorG &amp;lt;251) values.ChangeColorG = values.ChangeColorG + 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 0) values.ChangeBarSizeY = values.ChangeBarSizeY - 10] &lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct == 0) values.ChangeBarPositionY = values.ChangeBarPositionY + 0.5]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==0 &amp;amp;&amp;amp; expressions.ColorR &amp;gt;251) values.ChangeColorG = values.ChangeColorG - 3.00]&lt;br/&gt;/ ontrialend = [if (trial.poswordtraining_posFB.correct ==0 &amp;amp;&amp;amp; expressions.ColorR &amp;lt;251) values.ChangeColorR = values.ChangeColorR + 3.00]&lt;br/&gt;&lt;br/&gt;So, the bar changes -10 and +10, but i think 0.5 would be enough to rise and fall. &lt;br/&gt;&lt;br/&gt;the script for the bar is the following:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/fixationduration = 500&lt;br/&gt;/fixation_posttrialpause = 100&lt;br/&gt;/target_posttrialpause = 0&lt;br/&gt;/targetduration = 3000&lt;br/&gt;/wordtype = 0&lt;br/&gt;/positiveword = ""&lt;br/&gt;/negativeword = ""&lt;br/&gt;/ChangeBarSizeY = 0&lt;br/&gt;/ChangeBarPositionY = 0&lt;br/&gt;/ChangeColorR = 0&lt;br/&gt;/ChangeColorG = 0&lt;br/&gt;/select = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions &amp;gt;&lt;br/&gt;/BarSizeY = 39% + values.ChangeBarSizeY&lt;br/&gt;/BarPositionY = 61 + values.ChangeBarPositionY&lt;br/&gt;/ColorR = 255 + values.ChangeColorR&lt;br/&gt;/ColorG = 255 + values.ChangeColorG&lt;br/&gt;/MaxBarSizeY = 100  &lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape bar&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ erase = false&lt;br/&gt;/ color = (expressions.ColorR ,expressions.ColorG ,0)&lt;br/&gt;/ position = (96, expressions.BarPositionY)&lt;br/&gt;/ size = (50,900)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;The way the bar starts right now is ok. I want it to start there. &lt;br/&gt;There are no levels. The participants see a sentence and after the sentence they see a word. every sentence has a positive and a negative word. The sentences are situations and the words are interpretations of these situations. for example:&lt;br/&gt;Sentence: A friend comments on your decision.&lt;br/&gt;positive: supporting&lt;br/&gt;negative:  criticizing&lt;br/&gt;The answer is correct if the participant says &lt;br/&gt;a) that the positive word and the sentence are connected.&lt;br/&gt;b) that the negative word and the sentence are not connected.&lt;br/&gt;The answer is wrong of the participant says otherwise.&lt;br/&gt;If the answer is correct they see a positive smiley&lt;br/&gt;and if the answer is wrong they see a negative smiley. &lt;br/&gt;&lt;br/&gt;The participants have to options:&lt;br/&gt;1) press "S" for " no, the sentences and word are not connected"&lt;br/&gt;2) press "L" for "yes, the sentence and word are connected"&lt;br/&gt;They see 30 sentences that are presented at one time with the positive word and one time with the negative word, in total 60 sentences per training. The sentences are randomly presented. &lt;br/&gt;We want them to learn to answer correctly so we want a bar that rises when they give a correct answer and falls if they give the wrong answer. I dont really know at what "specific point" the bar should stop. We want the bar to stop, so the participant knows they can not improve, so it should be a goal for them to keep the bar on top. I just dont want the bar to go out of the screen. &lt;br/&gt;&lt;br/&gt;I got the code of my boss who did a similar experiment before. They made a bar too, but there was no option to stop the bar. i copied the code for the bar and for this experiment we decided that the bar should stop, but i cant figure out how i can do that. &lt;br/&gt;&lt;br/&gt;If you need any more information,&amp;nbsp; I will gladly give it to you&amp;nbsp; &lt;br/&gt;&lt;br/&gt;</description><pubDate>Sat, 29 Jul 2023 11:41:32 GMT</pubDate><dc:creator>Kairi</dc:creator></item><item><title>RE: Progressbar is supposed to stop</title><link>https://forums.millisecond.com/Topic35578.aspx</link><description>&lt;blockquote data-id="35574" class="if-quote-wrapper" unselectable="on" data-guid="1690592077405" id="if_insertedNode_1690592075671" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35574" 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="35574" 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="35574" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Kairi - 7/28/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35574"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello, i need help. English is not my first language so please apologize for any mistakes. &lt;br/&gt;&lt;br/&gt;I want to programm a training for self-esteem and i need a progress bar. I already programmed the progressbar: it rises if you give a correct answer but i want it to fall if you give a wrong answer and i want it to stop rising at a specific point. Right now it rises out of the screen.&lt;br/&gt;&lt;br/&gt;I attached the file. I appreciate any help. &lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35574"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You need to be more specific. You don't explain by how *much* you want the bar to rise or fall. You don't explain at what "speciic point [you] want it to stop rising." You don't explain at what size or level or position the bar should start at.&lt;br/&gt;&lt;br/&gt;Also, you should at a minimum explain the reasoning behind any code you share. Name the relevant elements exactly as they are called in the script. Explain what you did and why.&lt;br/&gt;</description><pubDate>Sat, 29 Jul 2023 00:57:33 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>