<doc>
	<legacy_id>2008</legacy_id>
	<name>mouseLoc</name>
	<type>function</type>

	<syntax>
		<example>the mouseLoc</example>
		<example>mouseLoc()</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary><glossary tag="return">Returns</glossary> the location of the <glossary tag="mouse pointer">mouse pointer</glossary>.  </summary>

	<examples>
<example>the mouseLoc</example>
<example>click at the mouseLoc</example>
	</examples>

	<history>
		<introduced version="1.0">Added.  </introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
	  <ios/>
    <android/>
  </platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
	  <mobile/>
  </classes>

	<security>
	</security>


	<classification>
		<category>User Interaction</category>
	</classification>

	<references>
		<function tag="mouseClick">mouseClick Function</function>
		<function tag="mouseV">mouseV Function</function>
		<function tag="mouseCharChunk">mouseCharChunk Function</function>
		<function tag="selectedLoc">selectedLoc Function</function>
		<function tag="mouseColor">mouseColor Function</function>
		<command tag="grab">grab Command</command>
		<message tag="dragEnter">dragEnter Message</message>
	</references>

	<description>
	<overview>Use the <b>mouseLoc</b> <control_st tag="function">function</control_st> to find out where the mouse is. </overview>

		<parameters>
		</parameters>

	<value>The <b>mouseLoc</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> two <glossary tag="integer">integers</glossary> separated by a comma. </value>
	<comments>The first item of the return value is the horizontal distance in pixels from the left edge of the current stack to the location of the mouse. The second item of the return value is the vertical distance from the top edge of the current stack to the location of the mouse. (Use the <b>defaultStack</b> <glossary tag="property">property</glossary> to identify the current <object tag="stack">stack</object>.)<p></p><p>The first item of the <b>mouseLoc</b> is equal to the <function tag="mouseH">mouseH</function>. The second <keyword tag="item">item</keyword> is equal to the <function tag="mouseV">mouseV</function>. </p><p></p><p></p><note>When in a mouseDown handler, you can use the <function tag="clickLoc">clickLoc</function> function to get the position of the mouse as it was when the mouseDown action ocurred.</note><p></p><p></p><tip>The <message tag="mouseMove">mouseMove</message> <keyword tag="message box">message</keyword> sends the current mouse position as a <glossary tag="parameter">parameter</glossary>. This means that in a <message tag="mouseMove">mouseMove</message> <glossary tag="handler">handler</glossary>, normally it's not necessary to use the <function tag="mouseLoc">mouseLoc</function> <control_st tag="function">function</control_st>. </tip></comments>
	</description>
</doc>