{"identifier":59412,"topic":"Functions","name":"mouseLoc","text":"<code><pre>the mouseLoc\n<\/pre><\/code> Value returned: a<code> <i>point<\/i> <\/code>equal to the current position of the mouse pointer relative to the current card <br>\n","related":{"32809":null,"18600":null,"53693":"clickLoc","59060":"mouseH and mouseV"},"examples":"get the mouseLoc\nif it is within the rect of card button 1 then ...\n\n\nset the loc of button 1 to mouseLoc()\n\nif the mouseLoc is not within the rect of card window then beep","demo":"<code><pre>on mouseLocDemo\n  set the cursor to arrow\n  show bkgnd field \"demo field\"\n  put \"Move the mouse to change the mouseLoc.\" & return & return &\u00ac\n  \"The mouseLoc is:\" && the <b>mouseLoc<\/b> into bkgnd field \"demo field\"\n  put spaces(20) & \"Click the mouse to stop . . .\" into \u00ac\n  line 5 of bkgnd field \"demo field\"\n  repeat until the mouseClick\n    put the <b>mouseLoc<\/b> into last word of line 3 of \u00ac\n    bkgnd field \"demo field\"\n  end repeat\n  hide bkgnd field \"demo field\"\n  put empty into bkgnd field \"demo field\"\nend mouseLocDemo<\/pre><\/code>\n ","debug":{"9":["the mouseLoc\r\rValue "]}}