Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> GUI > clipboard

clipboard

Copy and paste strings to and from the system clipboard.

Calling Sequence

clipboard("copy",data)
str=clipboard("paste")
clipboard("do","paste")
clipboard("do","copy")
clipboard("do","empty")
clipboard(winnum,"EMF")
clipboard(winnum,"DIB")

Arguments

data

Scilab variable or data to set as the clipboard contents.

str

The clipboard contents returned as a Scilab character string.

winnum

Number of the graphic window to set as the clipboard contents.

Description

clipboard("copy",data) sets the clipboard contents to data. If data is not a character array, the clipboard uses sci2exp to convert it to a string.

str = clipboard("paste") returns the current contents of the clipboard as a string or as an empty string (""), if the current clipboard contents cannot be converted to a string.

clipboard("do","paste"), clipboard("do","copy"), clipboard("do","empty") performs a paste, copy or empty clipboard.

clipboard(winnum,"EMF") copy a graphic window identified by his window's number in the clipboard to EMF format.

clipboard(winnum,"DIB") copy a graphic window identified by his window's number in the clipboard to DIB format.

Note that clipboard function works only when Scilab used in window mode.

Report an issue
<< addmenu GUI close >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:06:54 CEST 2014