Page 1 of 1

Control UI: paste a variable?

Posted: 13 Sep 2019 19:35
by tsolignani
Good evening everyone.

Is there a way to "paste" a variable into the current text box without having to change the system clipboard?

Of course, I cannot use setText2byID for I cannot know the name of the text box.

Thank you.

Re: Control UI: paste a variable?

Posted: 14 Sep 2019 00:31
by Rafi4
Hi
Use "show control ui infos" action to know the id.
To paste text use action "copy text to clipboard" and then use control ui action function is
paste ()

From record4

Re: Control UI: paste a variable?

Posted: 14 Sep 2019 13:24
by tsolignani
Thank you, but in many apps you cannot get to know the ID of the element.

Re: Control UI: paste a variable?

Posted: 15 Sep 2019 13:41
by anuraag
sendText(text) will work. You will need to enable Automagic keyboard first to get it work.

Re: Control UI: paste a variable?

Posted: 15 Sep 2019 15:00
by tsolignani
I'll try that, thank you.

Re: Control UI: paste a variable?

Posted: 27 Sep 2019 17:40
by Desmanto
For universal paste, you have to use system clipboard.

It seems you try to avoid changing the system clipboard because it will trigger your other clipboard flow. If that is the case, you have 2 workaround. At mine, I have added condition checking the flow is running. So my clipboard manager flow will check if the CUI paste flow is running, the flow won't continue to the main branch. Hence, the pasted clipboard won't change my clipboard buffer.

The other method is temporary disable the flow with clipboard changed trigger, set the clipboard, then enabel the flows again. However, if you use multiple flow with the clipboard changed trigger, it is not convenient to do it.