forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrolAtScreenLoc.lcdoc
More file actions
40 lines (26 loc) · 871 Bytes
/
Copy pathcontrolAtScreenLoc.lcdoc
File metadata and controls
40 lines (26 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Name: controlAtScreenLoc
Type: function
Syntax: controlAtScreenLoc(<coordinates>)
Summary:
Returns the control at the specified location.
Introduced: 6.0
OS: mac, windows
Platforms: desktop
Example:
put controlAtScreenLoc((100,100))
Example:
get the name of (controlAtScreenLoc(the mouseLoc))
Parameters:
coordinates(point):
A location, relative to the screen
Returns(string):
The control at the given location, in the form: control control_number.
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 (controlAtLoc(<coordinates>))
get the long ID of (controlAtLoc(<coordinates>))
References: mouseLoc (function), controlAtLoc (function),
control (keyword), location (property)
Tags: ui