Getting Started
This guide will help you set up DittoMation and run your first automation.
Prerequisites
- Python 3.8+
- ADB (Android Debug Bridge) installed and in PATH
- Android device with USB debugging enabled
Installing ADB
Enable USB Debugging
- Go to Settings > About Phone
- Tap Build Number 7 times
- Go back to Settings > Developer Options
- Enable USB Debugging
- Connect your device via USB
- Accept the debugging prompt on your device
Installation
Verify installation:
Verify device connection:
You should see your device listed.
Your First Automation
Option 1: Natural Language
The easiest way to start:
More examples:
ditto nl "open Chrome, tap search bar, type hello world"
ditto nl "swipe up, scroll down, tap first item"
ditto nl "go back, go home"
Option 2: Record & Replay
Record your interactions:
Follow the prompts to record taps, swipes, and other gestures. Press Ctrl+C to stop.
Replay the workflow:
Option 3: Python API
from core import Android
# Connect to device
android = Android()
# Open an app
android.open_app("Settings")
# Wait for element
android.wait_for("Wi-Fi", timeout=10)
# Tap by text
android.tap("Wi-Fi")
# Scroll down
android.scroll("down")
# Go back
android.press_back()
Next Steps
- Smart Locator - Learn how element detection works
- Natural Language - Full command reference
- Variables & Control Flow - Variables, loops, and conditions
- API Reference - Complete API documentation