Documentation

Auto.js · Rhino syntax guide

zhflow scripts run on the Rhino JavaScript engine (same family as Auto.js / AutoJs Pro / AutoJs6). This English page is a concise overview; the full Chinese guide remains at /docs/rhino/.

Overview

Write Android automation in JavaScript. Rhino executes on the device and bridges to Android APIs. Prefer ES5-stable patterns; selected ES6 features may work depending on the engine build.

Not browser JavaScript

  • No DOM, window, or document
  • UI work uses Auto.js-style selectors and actions, not HTML
  • Java interop is available for Android platform calls

Common Auto.js-style patterns

// Illustrative only
launchApp("Target App");
text("Me").findOne(3000).click();
text("Check in").findOne(3000).click();
toast("Done");

For deeper ES5/ES6 notes, Java interop, and pitfalls, use the full Chinese Rhino guide or pair with AI-generated scripts.