Interact Block

152 views
Skip to first unread message

Jacob Child

unread,
Nov 3, 2021, 8:19:11 PM11/3/21
to Automate
Hello all! I am brand new to this and am finding Automate a steep but interesting learning curve. My goal was to receive a text message, when it has key words I am looking for, open an app (Trust Wallet) and perform a few actions, take a screenshot, and text the result to me. I have made it go to the open the app point, and then I cannot understand how to get interact or interact touch to work, or record actions. Is there a tutorial I can be pointed towards or can someone explain all of the lingo in the documentation? that would be very helpful haha! Also, I am finding that the app must be in the foreground?
Thanks,
Jacob

Ricardo Fernández Serrata

unread,
Nov 4, 2021, 9:55:24 AM11/4/21
to Automate
Yes, to interact with an "App Activity" (standard name given by Google) it must be in the foreground. To setup an "Interact Block" you have to write "XPath" expressions, I don't know very much about this subject, but the documentation has info about it. If you want more info, or need it in a different format, search for "XML Path Language tutorial" in a search engine

Ricardo Fernández Serrata

unread,
Nov 4, 2021, 10:03:01 AM11/4/21
to Automate
Wait, Xpath is only necessary for complex stuff. If you just want to simulate a touch once, just use "Interact Touch Block". The X axis is 0% at the leftmost pixel of the display, 100% is rightmost. The Y axis is inverted, (I guess, I don't remember correctly) so 0% is top, and 100% is bottom

Henrik "The Developer" Lindqvist

unread,
Nov 4, 2021, 4:34:59 PM11/4/21
to Automate
Only the app in the foreground can be "interacted" with. A simple example flow would be...
  1. Flow beginning
  2. App start
  3. Delay: 2s
  4. Interact
To configure the Interact block, click the "record interaction" button then click the button to simulate a click on. Please read:
Reply all
Reply to author
Forward
0 new messages