controlAtScreenLoc

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

Returns the control at the specified location.

Introduced6.0
OSmac, windows
Platformsdesktop
Parameters
NameTypeDescription
coordinates

A location, relative to the screen

Example
put controlAtScreenLoc((100,100))
get the name of (controlAtScreenLoc(the screenMouseLoc))
Values
NameTypeDescription
return

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

RelatedKeyword: control
Function: screenMouseLoc, controlAtLoc
Property: location
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(<b>coordinates</b>))

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

Tagsui