Description
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.