## Progress bar in a block

 Author Message Rebecca17 Associate Member Group: Forum Members Posts: 7, Visits: 24 How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).But how can I implement a value that shows the number of the current text element? Dave Supreme Being Group: Administrators Posts: 9.6K, Visits: 44K +xRebecca17 - Tuesday, January 29, 2019How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).But how can I implement a value that shows the number of the current text element?I don't understand what a "trial consisting of 50 text elements" means. Please post some actual code to illustrate. Rebecca17 Associate Member Group: Forum Members Posts: 7, Visits: 24 +xDave - Tuesday, January 29, 2019+xRebecca17 - Tuesday, January 29, 2019How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).But how can I implement a value that shows the number of the current text element?I don't understand what a "trial consisting of 50 text elements" means. Please post some actual code to illustrate./ trials = [1-6 = WS]/ timeout = 420000/ bgstim = (BG1)/ stimulusframes = [1 = WS]/ validresponse = ("f", "g", "h", "j", "k")/ items = WSF/ select = sequence (1,2,3,4,5,6)/ position = (50%, 30%) /1 = "Wort1"/2 = "Wort2"/3 = "Wort3"/4 = "Wort4" /5 = "Wort5" /6 = "Wort6" Dave Supreme Being Group: Administrators Posts: 9.6K, Visits: 44K +xRebecca17 - Wednesday, January 30, 2019+xDave - Tuesday, January 29, 2019+xRebecca17 - Tuesday, January 29, 2019How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).But how can I implement a value that shows the number of the current text element?I don't understand what a "trial consisting of 50 text elements" means. Please post some actual code to illustrate./ trials = [1-6 = WS]/ timeout = 420000/ bgstim = (BG1)/ stimulusframes = [1 = WS]/ validresponse = ("f", "g", "h", "j", "k")/ items = WSF/ select = sequence (1,2,3,4,5,6)/ position = (50%, 30%) /1 = "Wort1"/2 = "Wort2"/3 = "Wort3"/4 = "Wort4" /5 = "Wort5" /6 = "Wort6"/ trials = [1-6 = WS]/ timeout = 420000/ ontrialbegin = [values.count += 1;]/ stimulusframes = [1 = WS, info]/ validresponse = ("f", "g", "h", "j", "k")/ items = WSF/ select = sequence (1,2,3,4,5,6)/ position = (50%, 30%)/1 = "Wort1"/2 = "Wort2"/3 = "Wort3"/4 = "Wort4"/5 = "Wort5"/6 = "Wort6"/ items = ("word <%values.count%> of <%text.WS.itemcount%>")/ position = (50%, 10%)/ size = (20%, 10%)/ erase = false/ count = 0