how would you solve this and where did you stop thinking of the goal?I'm trying to create a macro
I'm very noo here, i don't understand id'sok, that is something.
first create a test macro to determine the screen dictionary where you want to fill the text in. i advice you that you can use your macro as a submacro (you need edit your macro a bit, like variable "THIS IS THE LINE") or something with a custom text in the needed empty space to determine which id-number you will need. after your text is filled in, do a screen reading action and then you see where you need to operate.
i will wait, till you have this.
Yes exactly what I'm thinking, but I think and I'm sure there is a trick to paste text when long press in the empty field.I am not sure if you can identify the field where you are trying to write easily.
For exemple the field where I am writing now has some random index after runing read screen action and I believe using ui click trigger won't work when clicking this field.
Its under index:608 for exemple and it will be changing every time.
So there is a lot of difficult things to deal with.
And even after figuring it all out it might be unreliable.
ok, now write something in the expected "empty" or not "empty" space and execute the macro again to determine the location of the needed bracket and tell me which word you wrote in.Okk here is the macro you told me to do and here is the output when trigger fired up ;
PS: I TRIED IT IN NOTE APP.View attachment 8527View attachment 8526
Yes i agree with you, by creating an array grouping all possible texts as variablesI am not sure. Depending on how much effort you want to put in this macro, you could just check most apps/all apps you use, check what description of field indicates that its empty (for this particular field), store all descriptions in an array/dictionary and create one if clause checking if this array contains current variable's value and if it does - paste clipboard text.
Unless someone finds universal way of checking if its really empty (as you said)
+Some empty fields like the one we write here on forum won't be detected by macrodroid and I am not sure either if there's any way to bypass that too. Probably not with ui interactions based triggers/actions
Edit. After runing read screen action the field has key and a value, you can probably use both but long clicking (with key used) will probably trigger even if its not empty
can you post the result please.ok, now write something in the expected "empty" or not "empty" space and execute the macro again to determine the location of the needed bracket and tell me which word you wrote in.