Skip to content

clipboard() helper function - put text or get clipboard text [done] #57

Description

@kensoh

Adding a new clipboard() helper function which is implemented in the upstream TagUI project.

While it is entirely possible to do digital automation by using t.keyboard() to do the copying and pasting of text, with t.clipboard() there are new automation possibilities. Because text can be programmatically retrieved from the clipboard for processing or programmatically put to clipboard for some other purpose.

For eg t.clipboard('long string of text'); t.keyboard('[ctrl]v'); to quickly paste a large block of text into application instead of simulating the normal typing character by character. Another example is t.keyboard('[ctrl]a'); t.keyboard('[ctrl]c'); pdf_contents = t.clipboard(); to make the entire text of a PDF file available for parsing or extraction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions