﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » widescreen monitor resolutions and mouse clicks</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 05 Apr 2026 01:08:16 GMT</lastBuildDate><ttl>20</ttl><item><title>widescreen monitor resolutions and mouse clicks</title><link>https://forums.millisecond.com/Topic19811.aspx</link><description>We are collecting mouse clicks from a centered image and need to correct for the various monitor sizes used (we know how to record monitor size).&amp;nbsp; &lt;br/&gt;&lt;br/&gt;We have based our calculations on a widescreen monitor of 1920 x 1080 and found it hard to map the coordinates on to other monitors.&amp;nbsp; When we click on the 4 corners of the screen we are told that the x-coordinates run from -240 to 1680 (which is really odd) and the y-coordinates from 0 to ~1080 (which makes sense).&amp;nbsp; Any ideas why this is happening?&amp;nbsp; Is it something to do with inquisit or something about these monitors?&lt;br/&gt;&lt;br/&gt;Kind regards&lt;br/&gt;Jamie&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 07 Oct 2016 08:06:48 GMT</pubDate><dc:creator>jamieward</dc:creator></item><item><title>RE: widescreen monitor resolutions and mouse clicks</title><link>https://forums.millisecond.com/Topic19821.aspx</link><description>/ canvasaspectratio = (4,3) restricts the screen area Inquisit draws on to a 4:3 screen region, i.e., that area is smaller than the total (horizontal) surface your widescreen monitor (16:9 ratio) provides. The idea behind /canvasaspectratio is to facilitate consistent results in terms of (relative) stimulus sizing and spacing across varying display ratios. Now, when you click *outside* of the designated 4:3 area, the returned coordinates will (and should be) negative.&lt;br/&gt;&lt;br/&gt;To illustrate, run&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ canvasaspectratio = (4,3)&lt;br/&gt;/ canvasposition = (50%, 50%)&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ x = -1&lt;br/&gt;/ y = -1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-4=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialend = [values.x = trial.mytrial.responsex; values.y = trial.mytrial.responsey]&lt;br/&gt;/ stimulusframes = [1=myshape]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape myshape&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [trialnum trialcode values.x values.y]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;The black area is the designated 4:3 section. If you click the 4 "corners" of the screen in the *white* area, you'll see negative x-coordinates.&lt;br/&gt;&lt;br/&gt;Hope this clarifies.&lt;br/&gt;</description><pubDate>Fri, 07 Oct 2016 08:06:48 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: widescreen monitor resolutions and mouse clicks</title><link>https://forums.millisecond.com/Topic19816.aspx</link><description>1) I have added the script file. This is a change blindness experiment from the library that used to collect typed responses.&amp;nbsp; We have modified it so that the participant clicks on the part of the image that has changed.&lt;br/&gt;2) To date, we have been running the study on a standard computer on the lab (monitor of 1920 x 1080).&amp;nbsp; We defined a set of correct regions (x,y,radius) by clicking on the part that was changed and then we can compare the participants response against these predefined regions.&amp;nbsp; This has worked fine.&amp;nbsp; The image itself is displayed at 70% monitor height (with width adjusting proportionally).&amp;nbsp; We assumed that when we try on different resolutions that it would be a simple rescaling (a multiplier) of the correct coordinates, but it soon became apparent that something was wrong.&amp;nbsp; When we clicked on the 4 corners of the monitor to see what coordinates were returned we were very surprised that the upper left corner returned an x-value of -240 instead of 0.&amp;nbsp; &lt;br/&gt;3) As we imported it from someone else, we didn't think to check (no idea about this).&amp;nbsp; I now see that the script says "/canvasaspectratio = (4,3)" so I am guessing this is the origin of all our woes!&lt;br/&gt;&lt;br/&gt;Jamie&lt;br/&gt;</description><pubDate>Fri, 07 Oct 2016 03:15:53 GMT</pubDate><dc:creator>jamieward</dc:creator></item><item><title>RE: widescreen monitor resolutions and mouse clicks</title><link>https://forums.millisecond.com/Topic19813.aspx</link><description>Could you &lt;br/&gt;&lt;br/&gt;(1) Provide the Inquisit code that gave you those measurements / negative coordinates?&lt;br/&gt;(2) Could you elaborate what exactly " need to correct for the various monitor sizes used" means in your case? What are you trying to correct for? The image size in pixels or millimeters? Its position?&lt;br/&gt;(3) Are you making use of /canvassize, /canvasaspectratio and/or /canvasposition in your script?&lt;br/&gt;(4) What are the return values of display.height, display.width, display.canvasheight, and display.canvaswidth?&lt;br/&gt;(5) Are multiple monitors attached to the system? If so, what are their respective dimensions and which is the primary monitor?&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;</description><pubDate>Thu, 06 Oct 2016 08:10:12 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>