forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclick.lcdoc
More file actions
76 lines (54 loc) · 2.31 KB
/
click.lcdoc
File metadata and controls
76 lines (54 loc) · 2.31 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Name: click
Type: command
Syntax: click [button <mouseButtonNumber>] at <point> [with <key> [, <key> [, <key>]]]
Summary:
Simulates a mouse click.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop
Example:
click at "100,200"
Example:
click button 2 at the loc of field 1
Example:
click at the mouseLoc with controlKey
Example:
click button 2 at the loc of button "Start"
Parameters:
mouseButtonNumber (enum):
The number of a mouse button:If you don't specify a mouseButtonNumber,
button 1 is used.
- 1 is the mouse button on Mac OS systems and the left button on
Windows and Unix systems.
- 2 is the middle button on Unix systems.
- 3 is the right button on Windows and Unix systems, or Control-click
on Mac OS systems.
point:
Any expression that evaluates to a point--a vertical and horizontal
distance from the top left of the current stack, separated by a comma.
key:
One of shiftKey, commandKey, optionKey, altKey or controlKey. You can
specify up to three keys, separated by commas.
Description:
Use the <click> <command> to simulate the action of a click, instead of
sending a <mouseDown> or <mouseUp> message--for example, to create a
<graphic> or <image> with a <handler>.
The <click> <command> sends a <mouseDown> and <mouseUp> <message> to the
<object(glossary)> at the clicked location. If two <object|objects> both
occupy the clicked location--one overlapping the other--the
<message|messages> are sent to the <object(glossary)> on top.
If the object under the <point> is a <button> whose <autoHilite> is
true, the <click> <command> causes the <button> to <highlight> and
unhighlight, just as though the user had clicked.
If the <point> is not within one of the <application|application's>
windows, the <click> <command> has no effect. This means that you cannot
use the <click> <command> to switch to another application.
References: grab (command), choose (command), type (command),
clickLoc (function), mouseClick (function), object (glossary),
highlight (glossary), application (glossary), handler (glossary),
message (glossary), graphic (glossary), command (glossary),
image (glossary), button (keyword), linkClicked (message),
mouseUp (message), mouseDown (message), mouseStillDown (message),
mouseDoubleUp (message), dragStart (message), autoHilite (property),
dragSpeed (property)
Tags: ui