controlAtLoc

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
controlAtLoc(<coordinates>)
Summary

Returns the control at the specified location.

Introduced6.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
coordinates

A location, relative to the current stack

Example
put controlAtLoc((10,10))
get the name of (controlAtLoc(the mouseLoc))
Values
NameTypeDescription
return

The control at the given location, in the form: control control_number.

RelatedKeyword: control
Function: mouseLoc, controlAtScreenLoc
Property: location
Description

The controlAtLoc 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 (controlAtLoc(<b>coordinates</b>))

get the long ID of (controlAtLoc(<b>coordinates</b>))

Tagsui