AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 9. Computer Use Commands >

AIG. - AI Google Gemini Integration

AIG.SetCuOptions

Previous Top Next


MiniRobotLanguage (MRL)

 

AIG.SetCuOptions
Configure Computer Use Settings

 

Intention

 

SetCuOptions Command: Customize UI Automation
 
The SetCuOptions Command allows you to configure global settings for the AIG.ComputerUse command.

It controls how screenshots are captured, resized, and processed before being sent to the AI, as well as the internal logic used to find UI elements.

 

What is the SetCuOptions Command?

 

It sets specific variables in the AIG library that dictate the behavior of the autonomous computer use features. You can define maximum image resolution, JPEG quality, temporary file paths, and the prompt template used for the AI.

 

Why Do You Need It?

 

Customization is key for balancing performance and accuracy:

Speed vs. Detail: Reduce MaxRes for faster API calls on slow connections, or increase it for 4K screens.

File Management: Redirect temporary screenshots to a specific folder using TempPath.

Prompt Engineering: Change the Prompt template to refine how the AI looks for buttons (e.g., strict vs fuzzy matching).

 

How to Use the SetCuOptions Command?

 

Use the command with a Key and a Value. Changes persist until the robot is restarted or the option is reset.

To reset an option to its default value, pass - as the value.

 

Supported Options

MaxRes : Maximum width in pixels. Images larger than this are downscaled. Default: 1500.

JpgQuality : Compression level (1-100). Lower is smaller/faster, Higher is clearer. Default: 80.

TempPath : Directory for temporary screenshots. Default: User Temp Folder.

TempFile : Base filename for screenshots. Default: "AIG_CU_Shot".

Prompt : The system prompt sent to the AI. Must include {DESC} as a placeholder for the element description.

 

Example Usage

 

' 1. High Quality for Small Text

AIG.SetCuOptions|MaxRes|3000

AIG.SetCuOptions|JpgQuality|95

 

' 2. Custom Temp Folder

AIG.SetCuOptions|TempPath|?exeloc\Cache\

 

' 3. Reset Quality to Default

AIG.SetCuOptions|JpgQuality|-

 

Syntax

 

AIG.SetCuOptions|P1|P2

 

Parameter Explanation

 

P1 - (String) The Option Name (e.g., "MaxRes", "Prompt").

P2 - (String/Numeric) The new value for the option, or "-" to reset to default.

 

Remarks

 

- Defaults: MaxRes=1500, JpgQuality=80.

- When setting a custom Prompt, ensure you include the placeholder {DESC} so the robot knows where to insert your specific search description.

 

See also:

 

? AIG.ComputerUse

? AIG.AskVision