﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » picture size</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 22 Apr 2026 02:19:03 GMT</lastBuildDate><ttl>20</ttl><item><title>picture size</title><link>https://forums.millisecond.com/Topic18012.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I am running an experiment that shows a picture in the middle of the screen. The participant has to click X times on this picture in order to have access to a subsequent task.&lt;br/&gt;&lt;br/&gt;I would like the size of the picture to be divided by half every time the participant clicks on it.&lt;br/&gt;&lt;br/&gt;&lt;em style="font-style: normal; color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-variant: normal; letter-spacing: normal; line-height: 16.5455px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"&gt;Do you have any idea on the way&lt;/em&gt;&lt;span style="color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 16.5455px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important; background-color: rgb(255, 255, 255);"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;to &lt;/span&gt;&lt;span style="color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16.5455px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;configure that?&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;&lt;br/&gt;Lucie&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 22 Dec 2015 10:04:38 GMT</pubDate><dc:creator>Lucie1043</dc:creator></item><item><title>RE: picture size</title><link>https://forums.millisecond.com/Topic18014.aspx</link><description>Example based on the previous ones I gave you in another thread:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ aclickcount = 0&lt;br/&gt;/ arequiredcount = 1&lt;br/&gt;/ ahpos = 0%&lt;br/&gt;/ bhpos = 0%&lt;br/&gt;&lt;strong&gt;/ asize = 40%&lt;/strong&gt;&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-4=choiceblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block choiceblock&amp;gt;&lt;br/&gt;/ onblockbegin = [if (block.choiceblock.totalcount &amp;gt; 0) values.arequiredcount = 2 * values.arequiredcount; ]&lt;br/&gt;/ trials = [1-10=choice]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (values.aclickcount &amp;lt;= 0) {values.ahpos=list.indicehposition.nextvalue; values.bhpos=list.indicehposition.nextvalue; &lt;strong&gt;values.asize=40%&lt;/strong&gt;}; ]&lt;br/&gt;/ ontrialend = [if (trial.choice.response=="astim") {values.aclickcount+=1;&lt;strong&gt; values.asize=values.asize*0.5&lt;/strong&gt;; }; ]&lt;br/&gt;/ stimulusframes = [1=astim, bstim, debug]&lt;br/&gt;/ validresponse = (astim, bstim)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ branch = [if (trial.choice.response=="bstim") trial.b]&lt;br/&gt;/ branch = [if (trial.choice.response=="astim" &amp;amp;&amp;amp; values.aclickcount&amp;gt;=values.arequiredcount) trial.a else trial.choice]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list indicehposition&amp;gt;&lt;br/&gt;/ items = (25%, 75%)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial a&amp;gt;&lt;br/&gt;/ ontrialend = [values.aclickcount=0]&lt;br/&gt;/ stimulusframes = [1=mytext, debug]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial b&amp;gt;&lt;br/&gt;/ ontrialend = [values.aclickcount=0]&lt;br/&gt;/ stimulusframes = [1=mytext, debug]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text astim&amp;gt;&lt;br/&gt;/ items = ("A")&lt;br/&gt;/ txbgcolor = (blue)&lt;br/&gt;/ vposition = 50%&lt;br/&gt;/ hposition = values.ahpos&lt;br/&gt;&lt;strong&gt;/ size = (values.asize, values.asize)&lt;/strong&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text bstim&amp;gt;&lt;br/&gt;/ items = ("B")&lt;br/&gt;/ txbgcolor = (green)&lt;br/&gt;/ vposition = 50%&lt;br/&gt;/ hposition = values.bhpos&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%script.currenttrial%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text debug&amp;gt;&lt;br/&gt;/ items = ("A clicks required: &amp;lt;%values.arequiredcount%&amp;gt; | A clicks made: &amp;lt;%values.aclickcount%&amp;gt;")&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 22 Dec 2015 10:04:38 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: picture size</title><link>https://forums.millisecond.com/Topic18013.aspx</link><description>The /size attribute accepts variables (&amp;lt;values&amp;gt; entries), i.e. you can simply set those to the desired value after each click using /ontrialend logic.&lt;br/&gt;</description><pubDate>Tue, 22 Dec 2015 09:56:42 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>