Skip to main content

Type Text

phone.type_text("Hello world")                           # Simulate keystrokes
phone.type_text("https://example.com", method="paste")   # Paste from clipboard
phone.type_text("Long message here", method="shortcut")  # Uses iOS Shortcut
MethodDescription
"keys" (default)Simulates individual key presses. Works everywhere, slower for long text.
"paste"Uses clipboard. Fast for long text, may not work in all contexts.
"shortcut"Uses iOS Shortcut for clipboard. Requires shortcut setup. Fast and reliable.

Run Shortcuts

phone.run_shortcut(name="My Shortcut")  # By name
phone.run_shortcut(index=0)             # By position (0-based)
Shortcuts run without input parameters. For shortcuts needing input, set up data beforehand (clipboard, files) or create a wrapper shortcut.