Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

CLIP AmigaDOS
Purpose: Read/write any clipboard unit.
Format: CLIP [<unit>] [WAIT] [GET | PUT | SET <string> | COUNT ] [TEXT]
Template: U=UNIT/N/K, W=WAIT/S, G=GET/S, P=PUT=S=SET/S, C=COUNT/S, TEXT
Path: C:CLIP
CLIP can store some text in the clipboard, retrieve some text from it or count how many clipboard units are filled.

Using the GET argument will retrieve text from the specified unit number (if supplied).

Using the SET argument and a <string> will store this <string> into the specified unit number (if supplied).

Using the COUNT argument will count and display the number of filled clipboard units.

The UNIT argument is used to specify which of the clipboard units should be used for the GET/PUT action.

The TEXT argument is the text data to be stored in the clipboard unit.

The WAIT argument, used along with the GET action, will wait for the unit to be filled with text data. Then it will perform the GET action. It may be useful in scripts.

If no GET, PUT or COUNT argument is specified, text will be retrieved. i.e. GET is the default action. If no unit number is specified, text will be written to/read from unit 0.

Example 1:

3.OS4:> CLIP PUT Amiga UNIT 2
Store the text "Amiga" in the clipboard unit 2.

Example 2:

3.OS4:> CLIP UNIT 2
Amiga
Retrieve and display the text stored in the clipboard unit 2.

Example 3:

3.OS4:> CLIP COUNT
1
Display how many clipboard units contain data.

Example 4:

3.OS4:> CLIP SET
Delete the content of clipboard unit 0.


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.