Core Function ClipGet
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ClipGet( <type> ) </pre> === Description === Get data from the clipboard === Parameters === ==== type ==== The type of data to get <pre> Text - Any text </pre> === Re...") |
(→Return Value) |
||
(2 intermediate revisions by one user not shown) | |||
Line 20: | Line 20: | ||
Success: Returns the correct type of data if available. | Success: Returns the correct type of data if available. | ||
− | Failure: Returns | + | Failure: Returns null if error occurs. |
=== Example === | === Example === |
Latest revision as of 20:24, 30 August 2015
ClipGet( <type> )
Contents |
Description
Get data from the clipboard
Parameters
type
The type of data to get
Text - Any text
Return Value
Success: Returns the correct type of data if available.
Failure: Returns null if error occurs.
Example
// Get current text from clipboard my $Current = ClipGet( "Text" ); println("Current clipboard text BELOW"); println($Current); println("Current clipboard text ABOVE"); println(""); // Set some text to clipboard ClipSet( "Text", "Hello World!" ); // Get current text from clipboard again my $Current = ClipGet( "Text" ); println("NOW Current clipboard text BELOW"); println($Current); println("NOW Current clipboard text ABOVE");