﻿<?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  » Stimuli positioning help - display resolution</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 06 Oct 2026 21:33:26 GMT</lastBuildDate><ttl>20</ttl><item><title>Stimuli positioning help - display resolution</title><link>https://forums.millisecond.com/Topic34127.aspx</link><description>Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am working on a task :&lt;a href="https://mili2nd.eu/2n6b"&gt;https://mili2nd.eu/2n6b&lt;/a&gt;&lt;br/&gt;In this task, you hear a person say something and then see their hand begin to reach or withdraw from an object. A line (with a segment missing) then appears on the screen. This line should be exactly in line with the tip of the persons fingers (most leftward position of their hand). Like this : &lt;img src="../Uploads/Images/5657c715-05cf-4816-9352-1912.png" data-download-url="../Uploads/Images/0e0b53bf-77f0-4f1d-b13d-c0cf.png" id="if_insertedNode_1649076130065"&gt;&lt;br/&gt;&lt;br/&gt;The line seems to be aligned correctly when I run the task using a monitor with 1920x1080 resolution. When I run the task on a different resolution, the line is not aligned correctly, like this: &lt;img src="../Uploads/Images/ce98e9cf-d1bf-48b4-9bf2-d0e1.png" data-download-url="../Uploads/Images/91b12a0d-30ed-4f50-b94e-f12b.png" id="if_insertedNode_1649076232259"&gt;&lt;img src="../Uploads/Images/80e71c94-3b04-49be-896a-d182.png" data-download-url="../Uploads/Images/5357bb2a-4d8a-40bb-aaf4-cc88.png" id="if_insertedNode_1649076246655"&gt;&lt;br/&gt;&lt;br/&gt;I tried to resolve this using the canvas size settings but the problem currently persists. The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Please could you help me resolve this issue so that the line is always shown in the correct position on all monitors.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina</description><pubDate>Mon, 04 Apr 2022 14:28:59 GMT</pubDate><dc:creator>KatrinaMcDonough</dc:creator></item><item><title>RE: Stimuli positioning help - display resolution</title><link>https://forums.millisecond.com/Topic34133.aspx</link><description>&lt;blockquote data-id="34131" class="if-quote-wrapper" unselectable="on" data-guid="1649082451929" id="if_insertedNode_1649082451075" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34131" 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="34131" 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="34131" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34131"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34130" class="if-quote-wrapper" unselectable="on" data-guid="1649082451929" id="if_insertedNode_1649082047623" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34130" 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="34130" 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="34130" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34130"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34129" class="if-quote-wrapper" unselectable="on" data-guid="1649082451929" id="if_insertedNode_1649080850529" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34129" 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="34129" 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="34129" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34129"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34128" class="if-quote-wrapper" unselectable="on" data-guid="1649082451929" id="if_insertedNode_1649079966037" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34128" 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="34128" 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="34128" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34128"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34127" class="if-quote-wrapper" unselectable="on" data-guid="1649082451929" id="if_insertedNode_1649078325860" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34127" 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="34127" 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="34127" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34127"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am working on a task :&lt;a href="https://mili2nd.eu/2n6b"&gt;&lt;a href="https://mili2nd.eu/2n6b"&gt;https://mili2nd.eu/2n6b&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;In this task, you hear a person say something and then see their hand begin to reach or withdraw from an object. A line (with a segment missing) then appears on the screen. This line should be exactly in line with the tip of the persons fingers (most leftward position of their hand). Like this : &lt;img src="../Uploads/Images/5657c715-05cf-4816-9352-1912.png" data-download-url="../Uploads/Images/0e0b53bf-77f0-4f1d-b13d-c0cf.png" id="if_insertedNode_1649076130065"&gt;&lt;br/&gt;&lt;br/&gt;The line seems to be aligned correctly when I run the task using a monitor with 1920x1080 resolution. When I run the task on a different resolution, the line is not aligned correctly, like this: &lt;img src="../Uploads/Images/ce98e9cf-d1bf-48b4-9bf2-d0e1.png" data-download-url="../Uploads/Images/91b12a0d-30ed-4f50-b94e-f12b.png" id="if_insertedNode_1649076232259"&gt;&lt;img src="../Uploads/Images/80e71c94-3b04-49be-896a-d182.png" data-download-url="../Uploads/Images/5357bb2a-4d8a-40bb-aaf4-cc88.png" id="if_insertedNode_1649076246655"&gt;&lt;br/&gt;&lt;br/&gt;I tried to resolve this using the canvas size settings but the problem currently persists. The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Please could you help me resolve this issue so that the line is always shown in the correct position on all monitors.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina&lt;a class="if-quote-goto quote-link" href="#" data-id="34127"&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;Please show your math explain how exactly you implemented "The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line."&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34128"&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;Hello, &lt;br/&gt;&lt;br/&gt;Thanks for your response. I've simplified my script below (and in the link above) to illustrate my issue more clearly. My issue is that I want to display two stimuli simultaneously (hand and line) and I want to position these so that the line appears over the hand at specific x and y coordinates. When I run the task on my monitor (which is 1920x1080 resolution), the line appears exactly where I want it to appear, but when using different screen resolution, the line appears in a different position relative to the hand. I would like to know how I can program the position of the line so that it appears in the same position relative to the hand on all monitors. &lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ canvasaspectratio = (1920, 1080)&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ canvassize = (100%, 100%)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Hand_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("bon10.jpg")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Line_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("probe_laser_3.png")&lt;br/&gt;/ hposition = values.X_coord&lt;br/&gt;/ halign = center&lt;br/&gt;/ vposition = values.Y_coord&lt;br/&gt;/ valign = center &lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/X_coord = 0&lt;br/&gt;/Y_coord = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Trial&amp;gt; &lt;br/&gt;/ pretrialpause = 1000&lt;br/&gt;/ ontrialbegin = [values.X_coord = 1px * 1033; values.Y_coord = 1px * 660]&lt;br/&gt;/ stimulustimes = [0 = Hand_pic, Line_pic]&lt;br/&gt;/ trialduration = 10000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina &lt;a class="if-quote-goto quote-link" href="#" data-id="34129"&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;Well, obviously&lt;br/&gt;&lt;br/&gt;/ ontrialbegin = [values.X_coord = 1px * 1033; values.Y_coord = 1px * 660]&lt;br/&gt;&lt;br/&gt;x = 1033px, y = 660px&lt;br/&gt;&lt;br/&gt;points to an entirely different position on a display that's 1920 * 1080 pixels compared to a display that's, say, 1600 * 900 pixels. Easy enough to see if you convert to percentages:&lt;br/&gt;&lt;br/&gt;1033/1920 = 53.8%&lt;br/&gt;660/1080 = 61.1%&lt;br/&gt;&lt;br/&gt;whereas&lt;br/&gt;&lt;br/&gt;1033/1600 = 64.6%&lt;br/&gt;660/900 = 73.3%&lt;br/&gt;&lt;br/&gt;Just work in percentages instead of absolute pixel values, which will necessarily differ between systems.&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ canvasaspectratio = (16, 9) // 1920 * 1080 is a 16:9 aspect ratio&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ canvassize = (100%, 100%)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Hand_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("bon10.jpg")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Line_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("probe_laser_3.png")&lt;br/&gt;/ hposition = values.X_coord&lt;br/&gt;/ halign = center&lt;br/&gt;/ vposition = values.Y_coord&lt;br/&gt;/ valign = center&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/X_coord = 0&lt;br/&gt;/Y_coord = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Trial&amp;gt;&lt;br/&gt;/ pretrialpause = 1000&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [values.X_coord = 1px * display.canvaswidth * (1033/1920); values.Y_coord = 1px * display.canvasheight * (660/1080)]&lt;/strong&gt;&lt;br/&gt;/ stimulustimes = [0 = Hand_pic, Line_pic]&lt;br/&gt;/ trialduration = 10000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34130"&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;Thanks for your response.&lt;br/&gt;&lt;br/&gt;In response to "x = 1033px, y = 660px...points to an entirely different position on a display that's 1920 * 1080 pixels compared to a display that's, say, 1600 * 900 pixels. "&lt;br/&gt; &lt;br/&gt;My thinking was that "/ canvasaspectratio = (1920, 1080)" would create a display&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="34131"&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; My thinking was that "/ canvasaspectratio = (1920, 1080)" would create a display &lt;br/&gt;&lt;br/&gt;It defines an &lt;strong&gt;aspect ratio&lt;/strong&gt;. Inquisit cannot make a display that only has 1600*900 pixels magically have 1920 * 1080 pixels. That's a physical impossibility.&lt;br/&gt;</description><pubDate>Mon, 04 Apr 2022 14:28:59 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimuli positioning help - display resolution</title><link>https://forums.millisecond.com/Topic34132.aspx</link><description>Apologies, my last post was sent in error - I see now where I went wrong. Thanks for the help.</description><pubDate>Mon, 04 Apr 2022 14:27:57 GMT</pubDate><dc:creator>KatrinaMcDonough</dc:creator></item><item><title>RE: Stimuli positioning help - display resolution</title><link>https://forums.millisecond.com/Topic34131.aspx</link><description>&lt;blockquote data-id="34130" class="if-quote-wrapper" unselectable="on" data-guid="1649082048843" contenteditable="false" id="if_insertedNode_1649082047623"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34130" 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="34130" 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="34130" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34130"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34129" class="if-quote-wrapper" unselectable="on" data-guid="1649082048843" id="if_insertedNode_1649080850529" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34129" 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="34129" 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="34129" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34129"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34128" class="if-quote-wrapper" unselectable="on" data-guid="1649082048843" id="if_insertedNode_1649079966037" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34128" 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="34128" 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="34128" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34128"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34127" class="if-quote-wrapper" unselectable="on" data-guid="1649082048843" id="if_insertedNode_1649078325860" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34127" 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="34127" 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="34127" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34127"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am working on a task :&lt;a href="https://mili2nd.eu/2n6b"&gt;&lt;a href="https://mili2nd.eu/2n6b"&gt;https://mili2nd.eu/2n6b&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;In this task, you hear a person say something and then see their hand begin to reach or withdraw from an object. A line (with a segment missing) then appears on the screen. This line should be exactly in line with the tip of the persons fingers (most leftward position of their hand). Like this : &lt;img src="../Uploads/Images/5657c715-05cf-4816-9352-1912.png" data-download-url="../Uploads/Images/0e0b53bf-77f0-4f1d-b13d-c0cf.png" id="if_insertedNode_1649076130065"&gt;&lt;br/&gt;&lt;br/&gt;The line seems to be aligned correctly when I run the task using a monitor with 1920x1080 resolution. When I run the task on a different resolution, the line is not aligned correctly, like this: &lt;img src="../Uploads/Images/ce98e9cf-d1bf-48b4-9bf2-d0e1.png" data-download-url="../Uploads/Images/91b12a0d-30ed-4f50-b94e-f12b.png" id="if_insertedNode_1649076232259"&gt;&lt;img src="../Uploads/Images/80e71c94-3b04-49be-896a-d182.png" data-download-url="../Uploads/Images/5357bb2a-4d8a-40bb-aaf4-cc88.png" id="if_insertedNode_1649076246655"&gt;&lt;br/&gt;&lt;br/&gt;I tried to resolve this using the canvas size settings but the problem currently persists. The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Please could you help me resolve this issue so that the line is always shown in the correct position on all monitors.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina&lt;a class="if-quote-goto quote-link" href="#" data-id="34127"&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;Please show your math explain how exactly you implemented "The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line."&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34128"&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;Hello, &lt;br/&gt;&lt;br/&gt;Thanks for your response. I've simplified my script below (and in the link above) to illustrate my issue more clearly. My issue is that I want to display two stimuli simultaneously (hand and line) and I want to position these so that the line appears over the hand at specific x and y coordinates. When I run the task on my monitor (which is 1920x1080 resolution), the line appears exactly where I want it to appear, but when using different screen resolution, the line appears in a different position relative to the hand. I would like to know how I can program the position of the line so that it appears in the same position relative to the hand on all monitors. &lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ canvasaspectratio = (1920, 1080)&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ canvassize = (100%, 100%)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Hand_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("bon10.jpg")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Line_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("probe_laser_3.png")&lt;br/&gt;/ hposition = values.X_coord&lt;br/&gt;/ halign = center&lt;br/&gt;/ vposition = values.Y_coord&lt;br/&gt;/ valign = center &lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/X_coord = 0&lt;br/&gt;/Y_coord = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Trial&amp;gt; &lt;br/&gt;/ pretrialpause = 1000&lt;br/&gt;/ ontrialbegin = [values.X_coord = 1px * 1033; values.Y_coord = 1px * 660]&lt;br/&gt;/ stimulustimes = [0 = Hand_pic, Line_pic]&lt;br/&gt;/ trialduration = 10000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina &lt;a class="if-quote-goto quote-link" href="#" data-id="34129"&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;Well, obviously&lt;br/&gt;&lt;br/&gt;/ ontrialbegin = [values.X_coord = 1px * 1033; values.Y_coord = 1px * 660]&lt;br/&gt;&lt;br/&gt;x = 1033px, y = 660px&lt;br/&gt;&lt;br/&gt;points to an entirely different position on a display that's 1920 * 1080 pixels compared to a display that's, say, 1600 * 900 pixels. Easy enough to see if you convert to percentages:&lt;br/&gt;&lt;br/&gt;1033/1920 = 53.8%&lt;br/&gt;660/1080 = 61.1%&lt;br/&gt;&lt;br/&gt;whereas&lt;br/&gt;&lt;br/&gt;1033/1600 = 64.6%&lt;br/&gt;660/900 = 73.3%&lt;br/&gt;&lt;br/&gt;Just work in percentages instead of absolute pixel values, which will necessarily differ between systems.&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ canvasaspectratio = (16, 9) // 1920 * 1080 is a 16:9 aspect ratio&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ canvassize = (100%, 100%)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Hand_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("bon10.jpg")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Line_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("probe_laser_3.png")&lt;br/&gt;/ hposition = values.X_coord&lt;br/&gt;/ halign = center&lt;br/&gt;/ vposition = values.Y_coord&lt;br/&gt;/ valign = center&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/X_coord = 0&lt;br/&gt;/Y_coord = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Trial&amp;gt;&lt;br/&gt;/ pretrialpause = 1000&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [values.X_coord = 1px * display.canvaswidth * (1033/1920); values.Y_coord = 1px * display.canvasheight * (660/1080)]&lt;/strong&gt;&lt;br/&gt;/ stimulustimes = [0 = Hand_pic, Line_pic]&lt;br/&gt;/ trialduration = 10000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34130"&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;Thanks for your response.&lt;br/&gt;&lt;br/&gt;In response to "x = 1033px, y = 660px...points to an entirely different position on a display that's 1920 * 1080 pixels compared to a display that's, say, 1600 * 900 pixels. "&lt;br/&gt; &lt;br/&gt;My thinking was that "/ canvasaspectratio = (1920, 1080)" would create a display&amp;nbsp;</description><pubDate>Mon, 04 Apr 2022 14:25:24 GMT</pubDate><dc:creator>KatrinaMcDonough</dc:creator></item><item><title>RE: Stimuli positioning help - display resolution</title><link>https://forums.millisecond.com/Topic34130.aspx</link><description>&lt;blockquote data-id="34129" class="if-quote-wrapper" unselectable="on" data-guid="1649080850959" id="if_insertedNode_1649080850529" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34129" 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="34129" 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="34129" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34129"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34128" class="if-quote-wrapper" unselectable="on" data-guid="1649080850959" id="if_insertedNode_1649079966037" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34128" 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="34128" 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="34128" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34128"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34127" class="if-quote-wrapper" unselectable="on" data-guid="1649080850959" id="if_insertedNode_1649078325860" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34127" 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="34127" 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="34127" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34127"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am working on a task :&lt;a href="https://mili2nd.eu/2n6b"&gt;&lt;a href="https://mili2nd.eu/2n6b"&gt;https://mili2nd.eu/2n6b&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;In this task, you hear a person say something and then see their hand begin to reach or withdraw from an object. A line (with a segment missing) then appears on the screen. This line should be exactly in line with the tip of the persons fingers (most leftward position of their hand). Like this : &lt;img src="../Uploads/Images/5657c715-05cf-4816-9352-1912.png" data-download-url="../Uploads/Images/0e0b53bf-77f0-4f1d-b13d-c0cf.png" id="if_insertedNode_1649076130065"&gt;&lt;br/&gt;&lt;br/&gt;The line seems to be aligned correctly when I run the task using a monitor with 1920x1080 resolution. When I run the task on a different resolution, the line is not aligned correctly, like this: &lt;img src="../Uploads/Images/ce98e9cf-d1bf-48b4-9bf2-d0e1.png" data-download-url="../Uploads/Images/91b12a0d-30ed-4f50-b94e-f12b.png" id="if_insertedNode_1649076232259"&gt;&lt;img src="../Uploads/Images/80e71c94-3b04-49be-896a-d182.png" data-download-url="../Uploads/Images/5357bb2a-4d8a-40bb-aaf4-cc88.png" id="if_insertedNode_1649076246655"&gt;&lt;br/&gt;&lt;br/&gt;I tried to resolve this using the canvas size settings but the problem currently persists. The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Please could you help me resolve this issue so that the line is always shown in the correct position on all monitors.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina&lt;a class="if-quote-goto quote-link" href="#" data-id="34127"&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;Please show your math explain how exactly you implemented "The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line."&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34128"&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;Hello, &lt;br/&gt;&lt;br/&gt;Thanks for your response. I've simplified my script below (and in the link above) to illustrate my issue more clearly. My issue is that I want to display two stimuli simultaneously (hand and line) and I want to position these so that the line appears over the hand at specific x and y coordinates. When I run the task on my monitor (which is 1920x1080 resolution), the line appears exactly where I want it to appear, but when using different screen resolution, the line appears in a different position relative to the hand. I would like to know how I can program the position of the line so that it appears in the same position relative to the hand on all monitors. &lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ canvasaspectratio = (1920, 1080)&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ canvassize = (100%, 100%)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Hand_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("bon10.jpg")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Line_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("probe_laser_3.png")&lt;br/&gt;/ hposition = values.X_coord&lt;br/&gt;/ halign = center&lt;br/&gt;/ vposition = values.Y_coord&lt;br/&gt;/ valign = center &lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/X_coord = 0&lt;br/&gt;/Y_coord = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Trial&amp;gt; &lt;br/&gt;/ pretrialpause = 1000&lt;br/&gt;/ ontrialbegin = [values.X_coord = 1px * 1033; values.Y_coord = 1px * 660]&lt;br/&gt;/ stimulustimes = [0 = Hand_pic, Line_pic]&lt;br/&gt;/ trialduration = 10000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina &lt;a class="if-quote-goto quote-link" href="#" data-id="34129"&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;Well, obviously&lt;br/&gt;&lt;br/&gt;/ ontrialbegin = [values.X_coord = 1px * 1033; values.Y_coord = 1px * 660]&lt;br/&gt;&lt;br/&gt;x = 1033px, y = 660px&lt;br/&gt;&lt;br/&gt;points to an entirely different position on a display that's 1920 * 1080 pixels compared to a display that's, say, 1600 * 900 pixels. Easy enough to see if you convert to percentages:&lt;br/&gt;&lt;br/&gt;1033/1920 = 53.8%&lt;br/&gt;660/1080 = 61.1%&lt;br/&gt;&lt;br/&gt;whereas&lt;br/&gt;&lt;br/&gt;1033/1600 = 64.6%&lt;br/&gt;660/900 = 73.3%&lt;br/&gt;&lt;br/&gt;Just work in percentages instead of absolute pixel values, which will necessarily differ between systems.&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ canvasaspectratio = (16, 9) // 1920 * 1080 is a 16:9 aspect ratio&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ canvassize = (100%, 100%)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Hand_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("bon10.jpg")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Line_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("probe_laser_3.png")&lt;br/&gt;/ hposition = values.X_coord&lt;br/&gt;/ halign = center&lt;br/&gt;/ vposition = values.Y_coord&lt;br/&gt;/ valign = center&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/X_coord = 0&lt;br/&gt;/Y_coord = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Trial&amp;gt;&lt;br/&gt;/ pretrialpause = 1000&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [values.X_coord = 1px * display.canvaswidth * (1033/1920); values.Y_coord = 1px * display.canvasheight * (660/1080)]&lt;/strong&gt;&lt;br/&gt;/ stimulustimes = [0 = Hand_pic, Line_pic]&lt;br/&gt;/ trialduration = 10000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 04 Apr 2022 14:11:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimuli positioning help - display resolution</title><link>https://forums.millisecond.com/Topic34129.aspx</link><description>&lt;blockquote data-id="34128" class="if-quote-wrapper" unselectable="on" data-guid="1649079966972" contenteditable="false" id="if_insertedNode_1649079966037"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34128" 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="34128" 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="34128" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34128"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34127" class="if-quote-wrapper" unselectable="on" data-guid="1649079966972" id="if_insertedNode_1649078325860" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34127" 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="34127" 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="34127" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34127"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am working on a task :&lt;a href="https://mili2nd.eu/2n6b"&gt;&lt;a href="https://mili2nd.eu/2n6b"&gt;https://mili2nd.eu/2n6b&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;In this task, you hear a person say something and then see their hand begin to reach or withdraw from an object. A line (with a segment missing) then appears on the screen. This line should be exactly in line with the tip of the persons fingers (most leftward position of their hand). Like this : &lt;img src="../Uploads/Images/5657c715-05cf-4816-9352-1912.png" data-download-url="../Uploads/Images/0e0b53bf-77f0-4f1d-b13d-c0cf.png" id="if_insertedNode_1649076130065"&gt;&lt;br/&gt;&lt;br/&gt;The line seems to be aligned correctly when I run the task using a monitor with 1920x1080 resolution. When I run the task on a different resolution, the line is not aligned correctly, like this: &lt;img src="../Uploads/Images/ce98e9cf-d1bf-48b4-9bf2-d0e1.png" data-download-url="../Uploads/Images/91b12a0d-30ed-4f50-b94e-f12b.png" id="if_insertedNode_1649076232259"&gt;&lt;img src="../Uploads/Images/80e71c94-3b04-49be-896a-d182.png" data-download-url="../Uploads/Images/5357bb2a-4d8a-40bb-aaf4-cc88.png" id="if_insertedNode_1649076246655"&gt;&lt;br/&gt;&lt;br/&gt;I tried to resolve this using the canvas size settings but the problem currently persists. The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Please could you help me resolve this issue so that the line is always shown in the correct position on all monitors.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina&lt;a class="if-quote-goto quote-link" href="#" data-id="34127"&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;Please show your math explain how exactly you implemented "The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line."&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34128"&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;Hello, &lt;br/&gt;&lt;br/&gt;Thanks for your response. I've simplified my script below (and in the link above) to illustrate my issue more clearly. My issue is that I want to display two stimuli simultaneously (hand and line) and I want to position these so that the line appears over the hand at specific x and y coordinates. When I run the task on my monitor (which is 1920x1080 resolution), the line appears exactly where I want it to appear, but when using different screen resolution, the line appears in a different position relative to the hand. I would like to know how I can program the position of the line so that it appears in the same position relative to the hand on all monitors. &lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ canvasaspectratio = (1920, 1080)&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ canvassize = (100%, 100%)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Hand_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("bon10.jpg")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Line_pic&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = ("probe_laser_3.png")&lt;br/&gt;/ hposition = values.X_coord&lt;br/&gt;/ halign = center&lt;br/&gt;/ vposition = values.Y_coord&lt;br/&gt;/ valign = center &lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/X_coord = 0&lt;br/&gt;/Y_coord = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Trial&amp;gt; &lt;br/&gt;/ pretrialpause = 1000&lt;br/&gt;/ ontrialbegin = [values.X_coord = 1px * 1033; values.Y_coord = 1px * 660]&lt;br/&gt;/ stimulustimes = [0 = Hand_pic, Line_pic]&lt;br/&gt;/ trialduration = 10000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina </description><pubDate>Mon, 04 Apr 2022 13:52:39 GMT</pubDate><dc:creator>KatrinaMcDonough</dc:creator></item><item><title>RE: Stimuli positioning help - display resolution</title><link>https://forums.millisecond.com/Topic34128.aspx</link><description>&lt;blockquote data-id="34127" class="if-quote-wrapper" unselectable="on" data-guid="1649078327374" id="if_insertedNode_1649078325860" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34127" 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="34127" 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="34127" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;KatrinaMcDonough - 4/4/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34127"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am working on a task :&lt;a href="https://mili2nd.eu/2n6b"&gt;&lt;a href="https://mili2nd.eu/2n6b"&gt;https://mili2nd.eu/2n6b&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;In this task, you hear a person say something and then see their hand begin to reach or withdraw from an object. A line (with a segment missing) then appears on the screen. This line should be exactly in line with the tip of the persons fingers (most leftward position of their hand). Like this : &lt;img src="../Uploads/Images/5657c715-05cf-4816-9352-1912.png" data-download-url="../Uploads/Images/0e0b53bf-77f0-4f1d-b13d-c0cf.png" id="if_insertedNode_1649076130065"&gt;&lt;br/&gt;&lt;br/&gt;The line seems to be aligned correctly when I run the task using a monitor with 1920x1080 resolution. When I run the task on a different resolution, the line is not aligned correctly, like this: &lt;img src="../Uploads/Images/ce98e9cf-d1bf-48b4-9bf2-d0e1.png" data-download-url="../Uploads/Images/91b12a0d-30ed-4f50-b94e-f12b.png" id="if_insertedNode_1649076232259"&gt;&lt;img src="../Uploads/Images/80e71c94-3b04-49be-896a-d182.png" data-download-url="../Uploads/Images/5357bb2a-4d8a-40bb-aaf4-cc88.png" id="if_insertedNode_1649076246655"&gt;&lt;br/&gt;&lt;br/&gt;I tried to resolve this using the canvas size settings but the problem currently persists. The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Please could you help me resolve this issue so that the line is always shown in the correct position on all monitors.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Katrina&lt;a class="if-quote-goto quote-link" href="#" data-id="34127"&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;Please show your math explain how exactly you implemented "The task is programmed using image stimuli that are 1920x1080 and a list of the x and y coordinates (in pixels) of the tip of fingers that is used to position the line."&lt;br/&gt;</description><pubDate>Mon, 04 Apr 2022 13:22:30 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>