{"identifier":53066,"topic":"Functions","name":"clickH and clickV","text":"<code><pre>the clickH\nthe clickV\n<\/pre><\/code> Values returned:  <code><pre>\n<\/pre><\/code>\n<code>clickH <\/code>returns an integer equal to the number of horizontal pixels from the left side of the card to the place the mouse was last clicked.   <code><pre>\n<\/pre><\/code>\n<code>clickV <\/code>returns an integer equal to the number of vertical pixels from the top of the card to the place the mouse was last clicked. <br>\n","related":{"32809":null,"59060":"mouseH and mouseV"},"examples":"click at 256,171\nput the clickH  -- same as item 1 of the clickLoc\nput the clickV  -- same as item 2 of the clickLoc\n \n-- Use clickV to place the top of some buttons into alignment \n-- based on the user\u2019s click:\nget the clickV\nset the top of bkgnd button 1 to it\nset the top of bkgnd button 2 to it\nset the top of bkgnd button 3 to it","demo":"on clickDemo\n   show bkgnd field \"demo field\"\n   displayMessage \"Click the mouse to continue...\"\n   wait until the mouseClick\n   answer \"The horizontal point of the click was:\" && the <b>clickH<\/b> && \u00ac\n   return &\"The vertical point of the click was:\" && the <b>clickV<\/b>\n   hide bkgnd field \"demo field\"\n end clickDemo\n ","debug":{"9":["the clickH\rthe click"]}}