Control UI: paste a variable?

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
tsolignani
Posts: 48
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Control UI: paste a variable?

Post by tsolignani » 13 Sep 2019 19:35

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.

User avatar
Rafi4
Posts: 208
Joined: 01 Dec 2017 05:23

Re: Control UI: paste a variable?

Post by Rafi4 » 14 Sep 2019 00:31

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
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
tsolignani
Posts: 48
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: Control UI: paste a variable?

Post by tsolignani » 14 Sep 2019 13:24

Thank you, but in many apps you cannot get to know the ID of the element.

anuraag
Posts: 270
Joined: 24 Jan 2015 02:06

Re: Control UI: paste a variable?

Post by anuraag » 15 Sep 2019 13:41

sendText(text) will work. You will need to enable Automagic keyboard first to get it work.

User avatar
tsolignani
Posts: 48
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: Control UI: paste a variable?

Post by tsolignani » 15 Sep 2019 15:00

I'll try that, thank you.

Post Reply