copy text on screen, send to excel

zaelBR

New member
Hi, I would really like some help with this, I've already fried several neurons, but no solution yet.

The situation is as follows,
1- I have an app that generates a hexadecimal code for me on my cell phone screen.
2-I need the macro to read something on the screen like "RFid:", and then copy the hexa code.
3-either paste the code into a spreadsheet (google sheets or excel), or send the code by email.

1710785561950.png
 

Attachments

  • 1710785551785.png
    1710785551785.png
    78.5 KB · Views: 2

hsurB

Well-known member
You need to start with creating simple macro to see if action called read screen content is enough for your case.
You can for now use floating button as trigger and read screen content action to save the screen into dictionary variable.
You need to trigger the macro while being on the screen you shared here.

Then go to macrodroid main menu-variables and find this variable to see if macrodroid recognizes the code from the top of your screen, try to find it scrolling through saved content and let us know if its there.
But even if its not there is other action that should solve it and overall achieving it all with macrodroid should be possible
 

RSF

Well-known member
Import the attached macro and see if it helps; it does what hsurB suggested. When you're in your other app, tap on the button that will be floating on your screen (blue circle), then come back to MacroDroid and look at the contents of the scrn_contents local variable.
To turn off the floating button, just disable the macro.
 

Attachments

  • Read_screen_contents_.macro
    2.6 KB · Views: 5
Top