Neutralino.clipboard
Neutralino.clipboard
namespace offers functions to access system clipboard.
#
clipboard.getFormat()Returns the current data format of the system clipboard.
#
Return String (awaited):Clipboard format: text
, image
, or unknown
.
#
clipboard.writeText(text)Writes text into the system clipboard.
#
Parameterstext
String: Text to store into the system clipboard.
#
clipboard.writeImage(image)Writes image into the system clipboard.
ClipboardImage
#
Input Object: width
: Number: Image width.height
: Number: Image height.bpp
: Number: Bits per pixel (BPP).bpr
: Number: Bytes Per Row (BPR).redMask
: Number: Red mask.greenMask
: Number: Green mask.blueMask
: Number: Blue mask.redShift
: Number: Red shift.greeShift
: Number: Green shift.blueShift
: Number: Blue shift.data
: ArrayBuffer: Raw RGBA binary data of the image in an array buffer.
#
clipboard.readText()Reads and returns text from system clipboard.
#
Return String (awaited):Stored text from the system clipboard.
#
clipboard.readImage()Reads and returns an image from system clipboard.
#
Return Object (awaited):Returns ClipboardImage
object that has the same
properties as in the writeImage()
function.