AIU. - Artificial Intelligence Utility

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIU. - OpenAI API > !Output Formatting and Delivery >

AIU. - Artificial Intelligence Utility

AIU.SetClipboardOutput

Previous Top Next


MiniRobotLanguage (MRL)

 

AIU.SetClipboardOutput
Set Whether Output is Copied to the Clipboard

 

Intention

 

SetClipboardOutput Command: Controlling Clipboard Output
 
The SetClipboardOutput command allows you to specify whether AIU operation outputs (e.g., chat responses or generated content) are automatically copied to the system clipboard.

This enhances workflow flexibility by enabling seamless integration with other applications. Especially its necessary if the Output contains Unicode Emojis that might be getting lost otherwise.

 

It’s part of the AIU - OpenAI API suite.

 

What is the SetClipboardOutput Command?

 

This command configures a global setting that determines if AIU operation results are copied to the clipboard after execution.

It accepts a numeric value: 0 to disable clipboard output, or 1 (or any non-zero value) to enable it. The default is 0 (disabled) unless set otherwise during initialization.

 

Why Do You Need It?

 

Controlling clipboard output is essential for:

Automation: Automatically transfer AI-generated content to other tools without manual copying.

Efficiency: Save time in workflows where clipboard usage is frequent.

Customization: Tailor AIU behavior to your specific script requirements.

 

How to Use the SetClipboardOutput Command?

 

Use this command by passing a single numeric parameter to enable or disable clipboard output for subsequent AIU operations.

It affects operations like AIU.Chat or AIU.GenerateURL when their optional clipboard parameter is set.

 

Example Usage

 

AIU.SetClipboardOutput|1

AIU.Chat|Hello, how are you?|$$RES|1

DBP.Response: $$RES (also copied to clipboard)

 

In this example, the chat response is both stored in $$RES and copied to the clipboard.

 

Illustration

 

┌────────────────────┐

│ Clipboard Setting  │

├────────────────────┤

│ Enabled (1)        │

└────────────────────┘

Enabling clipboard output for AIU operations.

 

Syntax

 

AIU.SetClipboardOutput|P1

AIU.Set_ClipboardOutput|P1

 

Parameter Explanation

 

P1 - A numeric value: 0 to disable clipboard output, 1 (or non-zero) to enable it.

 

Example

 

AIU.SetClipboardOutput|0

AIU.Chat|Tell me a story|$$STO

DBP.Story: $$STO (not copied to clipboard)

ENR.

 

Remarks

 

- The setting persists across AIU operations until changed again.

- It works in tandem with operation-specific clipboard parameters (e.g., in AIU.Chat).

 

Limitations

 

- Requires exactly one parameter; omitting or adding extra parameters triggers an error.

- Does not validate clipboard availability on the system.

 

See also:

 

AIU.Get_ClipboardOutput

AIU.Chat

AIU.GenerateURL

Clipboard Configuration