Skip to content

Pass action objects directly to computer()#29

Closed
kcoopermiller wants to merge 3 commits intomainfrom
computer
Closed

Pass action objects directly to computer()#29
kcoopermiller wants to merge 3 commits intomainfrom
computer

Conversation

@kcoopermiller
Copy link
Contributor

Now you can specify actions in two ways:

  1. Using action objects:

    click_action = ClickMouseAction(
        button="left",
        coordinates=[500, 500]
    )
    instance.computer(action=click_action)
  2. Using string action types with parameters:

    instance.computer(
        action="click_mouse",
        button="left",
        coordinates=[500, 500]
    )

@justinsunyt justinsunyt closed this Mar 5, 2025
@justinsunyt justinsunyt reopened this Mar 7, 2025
@justinsunyt justinsunyt closed this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants