Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
clipboard.addText
7 bytes removed
,
10:03, 25 May 2011
no edit summary
Line 1:
Line 1:
−
clipboard.'''addText''' is a function that is part of the [[
Catagory
:clipboard|Clipboard]] Library.
+
clipboard.'''addText''' is a function that is part of the [[
Category
:clipboard|Clipboard]] Library.
−
+
<br>
The function sets the content of the clipboard. <br>
The function sets the content of the clipboard. <br>
−
It accepts a string as input.<br>
+
It accepts a string as input.<br>
== Syntax ==
== Syntax ==
Line 20:
Line 20:
|}
|}
−
== Example ==
+
== Example
==
<source lang="lua">--Clipboard test
<source lang="lua">--Clipboard test
Line 32:
Line 32:
clipboard.addText(ch)
clipboard.addText(ch)
platform.window:invalidate() -- recall graph engine
platform.window:invalidate() -- recall graph engine
−
end</source>
+
end</source>
−
This code will read the content of the clipboard and print it on the screen. When you press a key, it will put the key value in the clipboard.
+
This code will read the content of the clipboard and print it on the screen. When you press a key, it will put the key value in the clipboard.
== See also ==
== See also ==
−
*[[clipboard.setText|clipboard.setText]]
+
*[[clipboard.setText|clipboard.setText]]
−
*[[
Clipboard Library|Clipboard Library
]]<br>
+
*[[
Category:clipboard
]]<br>
Jimbauwens
68
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version