Determines if the clipboard contains a particular format.
ClipHasFormat ( format )
(i) format: format of clipboard data.
(i) returns @TRUE if the clipboard contains data in the format specified by "format", or @FALSE if it does not.
The following is a list of possible clipboard formats.
Value |
Meaning |
1 |
F_TEXT |
2 |
F_BITMAP (not supported) |
3 |
F_METAFILEPICT |
4 |
F_SYLK |
5 |
F_DIF |
6 |
CF_TIFF |
7 |
CF_OEMTEXT |
8 |
CF_DIB |
9 |
CF_PALETTE |
10 |
CF_PENDATA |
11 |
CF_RIFF |
12 |
CF_WAVE |
13 |
CF_UNICODETEXT |
14 |
CF_ENHMETAFILE |
15 |
CF_HDROP |
16 |
CF_LOCALE |
128 |
CF_OWNERDISPLAY |
129 |
CF_DSPTEXT |
130 |
CF_DSPBITMAP |
131 |
CF_DSPMETAFILEPICT |
142 |
CF_DSPENHMETAFILE |
;This code will snapshot the screen to the clipboard, ;and check the format of the clipboard contents Snapshot(0) format = 2 ; bmp ret = ClipHasFormat(format) If ret == 1 Message("Clipboard format","Clipboard contains a bitmap") Else Message("Clipboard format","Clipboard does not contain a bitmap") EndIf Exit
Binary Operations, BinaryAlloc, BinaryWrite, BinaryFree, BinaryClipGet, BinaryClipPut, ClipGet, ClipGetEx