forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclipboard.lcdoc
More file actions
56 lines (38 loc) · 1.5 KB
/
clipboard.lcdoc
File metadata and controls
56 lines (38 loc) · 1.5 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
Name: clipboard
Type: function
Syntax: the clipboard
Syntax: clipboard()
Summary:
<return|Returns> the type of information on the <clipboard>.
Introduced: 1.0
OS: mac, windows, linux
Platforms: desktop
Example:
if the clipboard is "text" then paste
Example:
if the clipboard is empty then answer "Nothing to paste!"
Returns:
The <clipboard> <function> <return|returns> text, image, objects, or
empty.
Description:
Check the <clipboard> <function> before using the <paste> <command>, to
ensure that you're pasting the right kind of data.
The value of the <clipboard> <function> is a <string> describing what
kind of data is on the <clipboard>. LiveCode can paste text that has
been cut or copied, or picture content from an image, one or more
<object|objects> that have been cut or copied.
If the clipboard has nothing in it, or the contents of the clipboard is
a type of data that is not text, image data, or objects, the <clipboard>
<function> <return|returns> empty.
>*Tip:* To get or change the data on the <clipboard>, use the
> <clipboardData> <property>.
Changes:
The ability to sense image data on the clipboard was added in version
2.0.
References: copy (command), cut (command), paste (command),
lock clipboard (command), unlock clipboard (command),
function (control structure), clipboard (function), object (glossary),
command (glossary), return (glossary), property (glossary),
string (keyword), clipboardData (property), rawClipboardData (property),
fullClipboardData (property)
Tags: ui, clipboard