|
<< 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 |
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.
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.
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).
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.
�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.
' 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: