Millisecond Forums

window too large for 1280 x 800 pixel screen

https://forums.millisecond.com/Topic19394.aspx

By lfj88 - 7/13/2016

Dear reader,

I have created an online experiment that participants can make after installing the Inquisit Web Player (I programmed the experiment in Inquisit 4).
I tested it on a Mac and a Windows computer and everything worked fine. However, one of the participants just sent me a message that he could not continue, because the window did not fit his screen. It was too big. He saw that there was more text, but he could not read it. He has a 1280 by 800 pixel screen.

Is it simply not possible to run the experiment on such a screen or did I perhaps do something wrong in the script?

Thank you in advance for your reply.

Kind regards,
Lin
By Dave - 7/13/2016

Hi Lin,

You should be able to make the script adapt pretty well to lower screen resolutions by:

(1) Defining all sizes and positions in percentages. Notably, that should include any font sizes as defined in the various /fontstyle attributes throughout the script. I.e., define something like

/ fontstyle = ("Arial", 2%)

instead of

/ fontstyle = ("Arial", 24pt)

etc.

(2) You can further use the /canvassize and /canvasaspectratio attributes in the <defautls> element to force the screen area Inquisit uses to be identical across systems. For example,

<defautls>
/ canvasaspectratio = (4,3)
/ canvassize = (100%, 100%)
...
</defaults>

will restrict the area to a 4:3 ratio, so that objects are positioned similarly, regardless of  whether a given device has a regular 4:3 display or a some type "wide-screen" display (16:9 aspect ratio and others) attached.

(3) Finally, it is advisable to _test_ your experiment across a variety of screen resolutions you might encounter, to ensure that you've set up all elements such that they adapt well (#1 and #2 aboive). For example, to view for yourself how the script will approximately look on a display with 1280 x 800 pixel resolution, set the /windowsize attribute to

<defaults>
...
/ windowsize = (1280px, 800px)
...
</defaults>

and run the script on your computer. It will display in a 1280 by 800 pixel window, thus allowing you to simulate a smaller screen. You can do the same for other resolutions by changing the /windowsize dimensions accordingly.

Hope this helps.
By lfj88 - 7/13/2016

That helps a lot!
Great, thanks!