Copy and paste a variable.

Post your questions and help other users.

Moderator: Martin

Post Reply
robchoc
Posts: 74
Joined: 20 Jun 2018 12:38

Copy and paste a variable.

Post by robchoc » 10 Dec 2018 19:47

I have a simple script that generates a word and places it into global_word

How do I copy this into my clipboard and then paste it?

I have tried

copy(global_word):
paste()

This just pastes what is already in the clipboard and not my random word.

Thanks

User avatar
Desmanto
Posts: 2328
Joined: 21 Jul 2017 17:50

Re: Copy and paste a variable.

Post by Desmanto » 11 Dec 2018 05:34

no, copy() is to copy from the selected text in UI element. To copy from variable, you have to use action Copy Text to Clipboard, use global_word as the variable. Then the paste() is in separate action Control UI.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20191212 Official, Android Pie 9.0, Rooted.

robchoc
Posts: 74
Joined: 20 Jun 2018 12:38

Re: Copy and paste a variable.

Post by robchoc » 11 Dec 2018 08:23

I learn something new everytime I write a flow.

Thanks for all the help.

Post Reply