-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clipboard() helper function to copy and paste from clipboard - implemented #559
Comments
Draft syntax -
|
This idea was initially considered in #547, however a helper function would be a more intuitive implementation than doing it as a new step which seems clumsy (#547 (comment)) Implementation checkpoints -
For 5, yes clipboard() should be enabled in multi-language, for consistency with other helper functions which have support for multi-language. To be implemented later on. https://github.com/kelaberetiv/TagUI/tree/master/src/languages |
To get text from clipboard or set text to clipboard. This can be used with keyboard step [ctrl]c [ctrl]v for new use cases possibilities, by programmatically having direct read/write access to clipboard.
To get text from clipboard or set text to clipboard. This can be used with keyboard step [ctrl]c [ctrl]v for new use cases possibilities, by programmatically having direct read/write access to clipboard.
Above commit implements this feature. Documentation to be updated on the next packaged release to avoid confusion. Prior to packaged release, feature available from cutting edge version here - |
Usage in TagUI script - get clipboard text
put clipboard text
(without the js step, the ; is required at the end of the JavaScript code, for TagUI to know that this is a JavaScript statement and not throw error on unrecognised statement in script) |
@ck81 fyi on this new helper function - I think it can open up interesting new use possibilities! |
Raising an issue to implement clipboard() helper function, since this may be something commonly used. In normal user workflows, it would be using
keyboard [ctrl]c
andkeyboard [ctrl]v
(or[cmd]
for macOS) to copy and paste text from the clipboard.However, in some situations, getting the value store in clipboard directly to a variable in TagUI for usage, or setting the clipboard directly from a variable in TagUI would be very helpful. For eg, select all and copy to clipboard a PDF document, and then using clipboard() to access the value for data extraction / string-parsing etc.
The text was updated successfully, but these errors were encountered: