Access runtime system/device info and trigger system-level actions from script.
Syntax
System()Returns
Example
sys = System()
print("sdk=", sys.sdk())
battery = System.battery()
print("battery=", battery.percent, battery.charging)
System.toast("Macro started")
System.play_noti()
System.home()Fields
| Name | Description |
|---|---|
devdict | Current device details: isEmulator, Android API level sdk, language code, darkmode, touch support, and capture readiness. Read again to get updated details. |
batterydict | Current battery details: percent from 0 to 100, charging, temperature in degrees Celsius, and health text. Unavailable percent or temperature is -1; unknown health is "unknown". Read again to update. |
screendict | Current screen details: width and height in pixels, density scale, dpi, and orientation as display rotation in degrees (0, 90, 180, or 270). Read again after rotating the device. |
memorydict | Current system memory: avail, total, and the low-memory threshold in bytes; low indicates that available memory is low. Read again to update. |