Page 1 of 1
Copy text
Posted: 15 Jul 2020 03:50
by Akt
Hello
How to copy text from this message
I want to copy name and address
Re: Copy text
Posted: 15 Jul 2020 08:16
by Rafi4
Hi akt
Use control ui action to get text. Use control ui infos action to know the id of the name and address. Any doubts? Please post.
from record4
Re: Copy text
Posted: 15 Jul 2020 09:31
by Akt
Hello
In control ui, which function to use
Re: Copy text
Posted: 16 Jul 2020 01:01
by Akt
Please could you post a flow as I don't know how to write scripts.
Re: Copy text
Posted: 17 Jul 2020 03:00
by Rafi4
Hi akt
Use show control ui infos action to get
Example as below for your understanding.
text = getTextById("com.android.chrome:id/url_bar");
Text contains the desired address.
Trigger = app task started (app name chrome)
Action = control ui script as
Code: Select all
sleep (5000);
text = getTextById("com.android.chrome:id/url_bar");
Use condition debug dialog to know more.
From record4
Re: Copy text
Posted: 18 Jul 2020 16:33
by Desmanto
@Akt : where is these text located? Inside app or a browser? If inside app, you can use Control UI as suggested by Rafi4. You cn check the tutorial here :
viewtopic.php?f=6&t=7320
But if it is from browser, most of the time, you can't use Control UI to get the text. You can still try Control UI function getTextInActiveWindow() to see if it returns the text. If not, then you have to use HTTP request and parse the result using regex.
Re: Copy text
Posted: 03 Aug 2020 04:53
by Akt
Thank you. Problem solved
