mirror of
https://github.com/trycua/computer.git
synced 2026-01-04 20:40:15 -06:00
fix: correct computer typing helper in docs
Replace the outdated `interface.type()` calls in the Python docs with `interface.type_text()` to match the current Computer SDK API.
This commit is contained in:
@@ -40,7 +40,7 @@ try:
|
||||
await computer.interface.right_click(300, 300)
|
||||
await computer.interface.double_click(400, 400)
|
||||
|
||||
await computer.interface.type("Hello, World!")
|
||||
await computer.interface.type_text("Hello, World!")
|
||||
await computer.interface.press_key("enter")
|
||||
|
||||
await computer.interface.set_clipboard("Test clipboard")
|
||||
|
||||
Reference in New Issue
Block a user