GetClipboardData()

Syntax

Data = GetClipboardData(Datatype)
Description
Returns a copy of the data currently contained in the clipboard (if there is any).

Parameters

DataType - The type of data you want to copy from the clipboard. This can be one of the following values:
  #PB_ClipboardImage: the data which is returned is the ImageID of a previously pasted picture. This
  means you can use it wherever an 'ImageID' is required by PureBasic commands, such as DrawImage().

Return value

Data - The return value depends on the type of data you are reading. If this value is zero then there is no data (or no data of that type) in the clipboard.

Supported OS

Windows, AmigaOS

<- ClearClipboard() - Clipboard Index - GetClipboardText() ->