Demo window 8. Tips and Tricks

The initial size of the Demo window when you start it up is 1344×756 pixels, which is 70 percent of a standard wide screen (1920×1080 pixels). This means that if a font looks good at a size of 35 in the initial Demo window, the font will look equally good at a size of 50 when you use a 1920×1080 video projector full-screen.

If you resize the Demo window with the handle in the bottom left, or if you zoom the window out to the full screen, you may see that the relative positions of the contents of the window will change. Also, clicking on buttons and in parts of the window may yield unexpected x and y values. It is therefore advisable to resize the window only if you are on a page that you can get out of by pressing a key, or by clicking anywhere in the window without using demoX, demoY or demoClickedIn.

If you click away the Demo window while it is waiting for input, you get a message saying “You interrupted the script...”. If you do not want to see this message, you should make sure that the user can reach the end of the script, for instance by pressing the → key on the last page. To make sure the user sees that the script has ended, you could end it with demo Erase all.

Your demo can save its preferences in a folder of your choice, e.g. in 'preferencesDirectory$'/../GuineaPigAnalyzer if your demo is called GuineaPigAnalyzer. If you want to be less conspicuous and like to use the Praat preferences folder instead, please use the apps subfolder, in this way:

    createFolder: preferencesDirectory$ + “/apps”
    createFolder: preferencesDirectory$ + “/apps/GuineaPigAnalyzer”

Links to this page


© Paul Boersma 2009–2023