mouseLoc | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the location of the mouse pointer. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Glossary: property, return, handler, message, integer, parameter, mouse pointer Message: dragEnter, mouseMove Keyword: item Object: stack Control Structure: function Command: grab Function: mouseV, mouseColor, mouseClick, mouseH, clickLoc, mouseLoc, selectedLoc, mouseCharChunk | ||||||
Description | Use the mouseLoc function to find out where the mouse is. 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 defaultStack property to identify the current stack.) The first item of the mouseLoc is equal to the mouseH. The second item is equal to the mouseV.
| ||||||
Tags | ui |