SIMPLE_CLIPBOARD

SCOOP-compatible clipboard access for Windows

Overview

SIMPLE_CLIPBOARD provides simple clipboard access for Eiffel applications on Windows. It uses inline C with Win32 API calls and is SCOOP-compatible.

Key Features

Quick Start

<library name="simple_clipboard" location="$SIMPLE_CLIPBOARD/simple_clipboard.ecf"/>

Basic Usage

local
    cb: SIMPLE_CLIPBOARD
do
    create cb

    -- Copy to clipboard
    cb.set_text ("Hello, World!")

    -- Paste from clipboard
    if attached cb.text as t then
        print (t)
    end
end

API Reference

FeatureDescription
text: detachable STRING_32Get clipboard text
set_text (str)Set clipboard text
has_text: BOOLEANCheck if clipboard has text
is_empty: BOOLEANCheck if clipboard is empty
clearClear clipboard
copy_text (str)Alias for set_text
paste: detachable STRING_32Alias for text
format_count: INTEGERNumber of formats available
last_operation_succeeded: BOOLEANStatus of last operation