Macro to open Tandem app and create a room with settings

jeffjeff

New member
I tried now to use, after clicking the field, Fill clipboard (and wait 3 s) and after that use Paste from clipboard both with and without "remove existing text" but not working, but I could manually paste in the clipboard.
 

dhj49er

Well-known member
I tried now to use, after clicking the field, Fill clipboard (and wait 3 s) and after that use Paste from clipboard both with and without "remove existing text" but not working, but I could manually paste in the clipboard.
Are you familiar with shell scripts?

I think there may be a way using the keyboard.

The attached screenshot shows opening the keyboard, inputting a string with a enter at the end.

Replace the paste with these actions.

Make sure the cursor focus is in the input box and see if this works.

I have tried it and the text abc was successfully input where the cursor was flashing.

However, I don't know if it will work for the different field type as in your case, but I think it's worth trying.

1000256968.jpg
 

dhj49er

Well-known member
I've just realised these scripts don't appear to work unless your phone is rooted or have Shizuku running and select that option in the Shell Script action.

I have Shizuku installed.
 

jeffjeff

New member
After searching "fill field" I saw someone mention "long click" and I thought maybe that could give something. When I changed to Long click a "Paste" popup appeared in (or over) the field and if I touched that the proper paste from clipboard was done. So I figured that I should be able to clicck that with MD. I tried Click Text Paste but that didn't work
Tried the "Identify in app" procedure.It looked like it was giving null,null so I wasn't very hopeful. But then I saw it had made
Click ["Paste", 146,642] which looked promising.
It worked!
In that field I actually want 2 lines:
Como se dice ...?
How do you say ... ?

But I can't enter newline in that form on Tandem nor in the Fill Clipboard in MD. I tried /n but that didn't work. Now that when I manually copy the 2 lines and paste in the Tandem form, the linebreak is preserved.
Could it be possible to create a lv title =
Como se dice ...?
How do you say ... ?

and use that to fill the clipboard?


Is there any way to get common actions, in my case: Wait, UI interaction, to be quickly available?

I have more questions, but I probably should put in a new post


when proofreading I noticed that "cl" in "long click" looks almost like a "d" :D
 

jeffjeff

New member
De små tecknen! Det löste radbrytning i alla fall.

Något förslag för

Is there any way to get common actions, in my case: Wait, UI interaction, to be quickly available?
 

jeffjeff

New member
I had the filling of the Title field working. I decided to try to use a lv= description to fill that next field by pasting with a Custom text that used that lv.
Pasting of the lv worked but very strangely. the lv=description got pasted into the Title field and then a (Paste) button came on the Description field. End. If I manually clicked the paste button, the title string got pasted in there! Seems to have reversed the order.
 

jeffjeff

New member
This is the result. When i press Paste the title is put into that, wrong, field.Screenshot_20250510_123949_Tandem.jpgScreenshot_20250510_132127_MacroDroid.jpg

Another question. What's this about?Screenshot_20250509_165856_MacroDroid.jpg
 

Endercraft

Moderator
This is the result. When i press Paste the title is put into that, wrong, field.
You are pasting into the title (using the paste button), but when pasting the description, you don't switch to the description field first... causing the description to be pasted in the title.
Another question. What's this about?
This saves in a boolean variable whether you actually clicked on something or not.
 

jeffjeff

New member
You are pasting into the title (using the paste button), but when pasting the description, you don't switch to the description field first... causing the description to be pasted in the title.
But the previously functioning of the filling of the title field is still there in the code and BELOW that comes setting the lv (I had that in the beginning first but when that got pasted into Title I tried moving it to after the pasting in Title, but didn't help) , clicking in the description [90,990] and pasting the lv.

I don't know how this result can happen.

I'm thinking of trying also having an lv=title and using the same pasting method in both fields

In the Click result I was wondering most about use cases för block/ don't wait.

And still wondering "Is there any way to get common actions, in my case: Wait, UI interaction, to be quickly available?"
 

dhj49er

Well-known member
But the previously functioning of the filling of the title field is still there in the code and BELOW that comes setting the lv (I had that in the beginning first but when that got pasted into Title I tried moving it to after the pasting in Title, but didn't help) , clicking in the description [90,990] and pasting the lv.

I don't know how this result can happen.

I'm thinking of trying also having an lv=title and using the same pasting method in both fields

In the Click result I was wondering most about use cases för block/ don't wait.

And still wondering "Is there any way to get common actions, in my case: Wait, UI interaction, to be quickly available?"
Try setting and using favourites to see if that helps you.
Long press the + button for action to show your favourite actions- the spanner allows favourites to be selected.
See the attached screenshot.
Favourites are also available for triggers and constraints - by pressing the + button
 

Attachments

  • Screenshot_20250510_221323_com_arlosoft_macrodroid_ConfigureFavouritesActivity.jpg
    Screenshot_20250510_221323_com_arlosoft_macrodroid_ConfigureFavouritesActivity.jpg
    727.9 KB · Views: 1

jeffjeff

New member
Ah ... what a difference a LONG press makes! Thank you!

It was already populated with the most important for me. Has it been collecting in the background after what I used or is that just a default of popular actions?

You mentioned "Favourites are also available for triggers" So I tested and now I have a bunch of "wifi enabled" triggers in my macro and I don't know how to remove them! Just tried maybe LONG press. So now I have 4 unwanted triggers! :confused: I'm sure it's easy when you know how.


I'm never sure what to chose in this dialog:
In the Click result I am wondering most about use cases för block/ don't wait.
 
Last edited:

md_sgf

Well-known member
You mentioned "Favourites are also available for triggers" So I tested and now I have a bunch of "wifi enabled" triggers in my macro and I don't know how to remove them! Just tried maybe LONG press. So now I have 4 unwanted triggers! :confused: I'm sure it's easy when you know how.
Tap trigger > Tap "Delete" in popup menu.
Long-tap to enter Configure screen for trigger/action/constraint

Edit: I have edited my wiki page ;)
➡️ Context menu
 
Last edited:

jeffjeff

New member
Thanks! I knew I had seen and used that menu before, but didn't remember how to find it.

Checked the wiki. Looks good. Tried searching "delete action" in the wiki. That gave a lot of hits (16?) and your page was nr 4. So, "findable"

Another unanswered question:

I'm never sure what to chose in this dialog:
In the
Click result I am wondering most about use cases för block/ don't wait. What do the choices do?
 

md_sgf

Well-known member
I'm never sure what to chose in this dialog:
In the
Click result I am wondering most about use cases för block/ don't wait. What do the choices do?
I gave up with using this a few months back. It was of no use. And I'm not sure that I understand what it does.
 
Top