Open main menu
Home
Random
Recent changes
Special pages
Preferences
About MacroDroid Wiki
Disclaimers
MacroDroid Wiki
Search
User menu
18.119.127.230
Talk
Watchlist
Contributions
Log in
Changes
← Older edit
Action: Read Screen Contents
(view source)
Revision as of 17:59, 29 January 2024
1,064 bytes removed
,
29 January
→Example
Line 76:
Line 76:
* A floating window displayed above the main screen.
* A floating window displayed above the main screen.
* A dialog box that appears on the screen.
* A dialog box that appears on the screen.
−
</pre><br>
−
−
==<p><b>Example</b></p>==
−
−
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
−
Floating button gets elements from the screen, you can later check it (in the variable) to find the ID to use in a UI interaction or simply get the associated text of the ID.
−
</pre><br>
−
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
−
Triggers
−
−
Floating button | Screen content
−
</pre><br>
−
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
−
Actions
−
−
Read Screen Content -> my_dict
−
</pre><br>
−
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
−
Constraints
−
−
−
</pre><br>
−
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
−
Local variables
−
−
my_dict | 5 entries (This is a short example, but in practice the dictionary can have many more entries).
−
−
com.android.systemui:id/mobile_type | 5G
−
com.spotify.music:id/civerart | Cover and open spotify
−
com.microsoft.emmx:id/title | Search
</pre><br>
</pre><br>
JosueGd
editors
1,590
edits