Paste function not working

CytronBR

New member
Hi, I'm new to macrodroid and I am having an issue creating a macro.

I want to simply paste a text into a text field, but in the app that I need to use the action "Paste" under "UI Interaction" doesn't seen to work, it gives the following error on System Log:

"Failed to paste text. Typically only EditText fields can pasted into. This field type = android.widget.EditText"

Screenshot_20220720-212612_MacroDroid.png

Screenshot_20220720-212333_MacroDroid.png

Does anyone know how to fix it? or knows a workaround?

Also, in the same app trying to use the action "Click" with the option "Identify in app" also fails because it always detect the button's id in the app as null, in other apps both options work normally.
 

Attachments

  • Screenshot_20220720-212612_MacroDroid.png
    Screenshot_20220720-212612_MacroDroid.png
    38.7 KB · Views: 8
  • Screenshot_20220720-212333_MacroDroid.png
    Screenshot_20220720-212333_MacroDroid.png
    100.2 KB · Views: 7

Dm114

Well-known member
Hi, I'm new to macrodroid and I am having an issue creating a macro.

I want to simply paste a text into a text field, but in the app that I need to use the action "Paste" under "UI Interaction" doesn't seen to work, it gives the following error on System Log:

"Failed to paste text. Typically only EditText fields can pasted into. This field type = android.widget.EditText"

View attachment 3073

View attachment 3074

Does anyone know how to fix it? or knows a workaround?

Also, in the same app trying to use the action "Click" with the option "Identify in app" also fails because it always detect the button's id in the app as null, in other apps both options work normally.
To paste, the cursor must be located in an input field. So, make sure you're not trying to paste anywhere on the screen...

The Identify in app not working could be because it's impossible for MD to identify buttons for several reasons. One of them is when buttons and text are pictures and not plain text.
 

CytronBR

New member
To paste, the cursor must be located in an input field. So, make sure you're not trying to paste anywhere on the screen...

The Identify in app not working could be because it's impossible for MD to identify buttons for several reasons. One of them is when buttons and text are pictures and not plain text.
I made sure to focus on the input field but unfortunately neither that works, maybe it is an issue specific of the app since with other apps it works just fine.

Is it possible to input text using other ways in MD? like typing the text using the keyboard letter by letter or something like that?

Here's a video that illustrates better whats happening: https://drive.google.com/file/d/1-IcqQyia0WREMouDFvR9Htf8mAvand_L/view?usp=drivesdk

The click problem was solved by using xy coordinates.
 

Dm114

Well-known member
I made sure to focus on the input field but unfortunately neither that works, maybe it is an issue specific of the app since with other apps it works just fine.

Is it possible to input text using other ways in MD? like typing the text using the keyboard letter by letter or something like that?

Here's a video that illustrates better whats happening: https://drive.google.com/file/d/1-IcqQyia0WREMouDFvR9Htf8mAvand_L/view?usp=drivesdk

The click problem was solved by using xy coordinates.
Did you try to click using x,y coordinates inside the input field before pasting?
 

CytronBR

New member
Did you try to click using x,y coordinates inside the input field before pasting?
Yes, didnt work either.

I found a solution, I created an action block that gets an input text and types it letter by letter using the x,y coordinates of the keyboard buttons, was kind of tricky to make it, but turned out to work pretty well.

Thank you for your attention and time.
 

sousben

New member
Yes, didnt work either.

I found a solution, I created an action block that gets an input text and types it letter by letter using the x,y coordinates of the keyboard buttons, was kind of tricky to make it, but turned out to work pretty well.

Thank you for your attention and time.
hi my friend, could you upload the script in the template section? Or if you're not a premium user, could you send some screenshots of the instructions?

I have similar issues: https://www.macrodroidforum.com/index.php?threads/paste-not-working-in-some-cases.3421/

I found another solution which is to use the adb shell input text command, it required me to install the adb shell command plugin, but it requires me to connect my device to a computer to re-enable the shell after a reboot so not ideal...
 
Hi.

I am having the same problem trying to paste some text at compose area of a new Gmail message.

Tried to use some coordinates inside the compose area, the click apparently works but the paste function doesn't work.

Maybe I have to click exactly at the beginning of paste area but I don't know how to discover the exact coordinates.

Thanks
 

Dm114

Well-known member
Hi.

I am having the same problem trying to paste some text at compose area of a new Gmail message.

Tried to use some coordinates inside the compose area, the click apparently works but the paste function doesn't work.

Maybe I have to click exactly at the beginning of paste area but I don't know how to discover the exact coordinates.

Thanks
No you must not be located at a precise point in the area but some apps don't allow paste action in some areas...

To be sure, try a manual paste to check whether it is allowed or not.
 
No you must not be located at a precise point in the area but some apps don't allow paste action in some areas...

To be sure, try a manual paste to check whether it is allowed or not.
Manual paste works fine.

It's confusing why paste works at SUBEJCT field and doesn't at BODY field.

Thanks
 
Top