controlAtScreenLoc
Type
function
Summary
Returns the control at the specified location.
Syntax
controlAtScreenLoc(<coordinates>)
Description
The controlAtScreenLoc function returns the control at the given location. The function returns the number of the control, below are examples of getting the name or long id of the control
get the name of (controlAtScreenLoc(coordinates))
get the long ID of (controlAtScreenLoc(coordinates))
Parameters
Name | Type | Description |
---|---|---|
coordinates | point | A location, relative to the screen |
Examples
put controlAtScreenLoc((100,100))
get the name of (controlAtScreenLoc(the screenMouseLoc))
Related
function: screenMouseLoc, controlAtLoc
keyword: control
property: location
Compatibility and Support
Introduced
LiveCode 6.0
OS
mac
windows
Platforms
desktop