2017-01-18
Updated: 2017/1/18
Read Time: 5 min
Bot.js 4 Released — First Generation API (Project Starting Point)
Bot.js 4
Bot.js 4 was an early version of the project, providing the first-generation script runtime (based on Rhino) and initial automation APIs.
This version was primarily aimed at Android automation scenarios, offering basic capabilities for control operations, screen capture, and script execution.
Version Overview
Rhino Engine
- Used Rhino as the JavaScript engine (supporting ES5 / partial ES6);
- Scripts could run directly on Android devices, providing a stable runtime environment;
- Supported basic file operations, string processing, and common mathematical operations.
Core Features
- Automated Script Execution
- Supported writing and running JavaScript scripts;
- Scripts could control application interfaces and system operations.
- Accessibility Control Operations
- Supported finding interface nodes, obtaining properties, and performing actions like clicking, long-pressing, and swiping;
- Enabled complex interactive operations through node trees.
- Screen Capture and Image Processing
- Supported screenshot operations and image analysis of screenshots;
- Provided basic image processing interfaces such as pixel reading and color judgment.
- Touch Playback
- Supported recording touch operations and playing them back;
- Enabled reproduction and debugging of automated operations.
- Plugin Architecture Prototype
- Supported loading plugins to extend functionality;
- Provided an extensible API framework for subsequent versions.
Historical Significance
- Bot.js 4 laid the foundation for the entire automated script runtime design;
- Provided the initial APIs and operational interfaces, setting the stage for iterations and feature expansions in later versions;
- This version offered users stable basic Android automation capabilities.