JavaScript API
The JS API provides direct scripting access within Total Control using the Mozilla Rhino JavaScript engine.
| Feature | Detail |
|---|---|
| Engine | Mozilla Rhino (JavaScript) |
| Authentication | None (local execution) |
| Best For | Internal automation, complex scripts |
| Download | JS API Manual (CHM) |
JS API Exclusive Features
Features available only in the JS API (not REST):
| Feature | Description |
|---|---|
| Excel | Read/write Excel files |
| Keyboard | Create and manage keyboard shortcuts |
| TCThread | Multi-threading support |
| Trigger | Event-driven automation |
| Notification | Monitor device notifications |
| MTE | Managed Test Execution framework |
Documentation
- JS API Reference — Quick reference of all methods
- JS API Full Manual — Complete API documentation
- JS Modules — Module system overview
Module Reference
- DeviceFns — Device function utilities
- HTTP — HTTP request module
- Output — Output formatting
- Runtime — Runtime utilities
- Map — Map/collection utilities
- Notification — Notification handling