<doc>
  <legacy_id>1866</legacy_id>
  <name>screenLoc</name>
  <type>function</type>
  <syntax>
    <example>the screenLoc</example>
    <example>screenLoc()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>The System Environment</category>
  </classification>
  <references>
    <property tag="location">location Property</property>
    <function tag="screenRect">screenRect Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the location of the screen's center.</summary>
  <examples>
    <example>the screenLoc</example>
    <example>set the loc of window "Dialog" to the screenLoc</example>
  </examples>
  <description>
    <p>Use the <b>screenLoc</b> <control_st tag="function">function</control_st> to determine the height and width of the screen, or to compute the location of windows relative to the center of the screen.</p><p/><p><b>Value:</b></p><p>The <b>screenLoc</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> two integers separated by a comma.</p><p/><p><b>Comments:</b></p><p>The first item in the value returned by the <b>screenLoc</b> is the distance from the left edge to the center of the screen, in <property tag="pixels">pixels</property>. The second <keyword tag="item">item</keyword> is the distance from the top edge to the center of the screen, in <property tag="pixels">pixels</property>.</p><p/><p>If the system has more than one monitor, the <b>screenLoc</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> the <keyword tag="rectangle">rectangle</keyword> of the main screen.</p>
  </description>
</doc>