|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 5. Configuration User, File & Clipboard > AIG. - AI Google Gemini Integration |
MiniRobotLanguage (MRL)
AIG.SetClipboardOutput
Enable or Disable Copying Response Content to Clipboard
Intention
Control whether the main content extracted from the AI's response (stored in AIG_GeminiContent) should be automatically copied to the system clipboard after the response is analyzed by the framework.
This Command sets the AIG_ClipboardOutput global variable. A value of 1 enables automatic copying, while 0 disables it (the default).
To reset this setting to its default (disabled), you must pass the sentinel value -1.
Use this Command to:
�Convenience: Automatically have the AI's response ready to paste elsewhere.
�Control Behavior: Explicitly enable or disable the clipboard copying feature.
Provide an integer value as parameter P1: `1` to enable, `0` to disable, or `-1` to reset to the default (which is 0 - disabled).
Example Usage
// Enable copying to clipboard
AIG.SetClipboardOutput|1
DBP. Clipboard output enabled.
// Disable copying to clipboard
AIG.SetClipboardOutput|0
DBP. Clipboard output disabled.
// Reset to default (disabled)
AIG.SetClipboardOutput|-1
DBP. Clipboard output reset to default.
Syntax
AIG.SetClipboardOutput|P1
AIG.scb|P1
Parameter Explanation
P1 - (Required) An integer value controlling clipboard behavior.
� �- `1`: Enable automatic copying.
� �- `0`: Disable automatic copying.
� �- `-1`: Reset to the default behavior (0 - disabled).
Remarks
- Copying only occurs if the analysis is successful and the extracted content is not an error message.
- There is a size limit (%MAX_CLIPBOARD_SIZE) to prevent issues with very large responses.
- Use AIG.GetClipboardOutput to retrieve the current setting.
See also: