Changes

Line 1: Line 1: −
(Updated to version 5.41, latest edition January 18, 2024)
+
(Updated to version 5.44, latest edition 15 April, 2024)
 +
 
 
== About ==
 
== About ==
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
 
 
In many triggers, actions and constraints you will have the option to configure some textual fields. Often you will find a button next to the text entry field that contains the "..." label. This button will display a complete list of "magic text" fields that are available in the context that is being used.
 
In many triggers, actions and constraints you will have the option to configure some textual fields. Often you will find a button next to the text entry field that contains the "..." label. This button will display a complete list of "magic text" fields that are available in the context that is being used.
   Line 14: Line 15:     
Magic text can be written in 2 ways : Curly brackets {value} and square brackets [value]. Curly brackets aren't supported on very old versions like v5.20 and below but it's recommended to use it when interacting with dictionaries/arrays as with square brackets it can get confusing where you are very quickly.
 
Magic text can be written in 2 ways : Curly brackets {value} and square brackets [value]. Curly brackets aren't supported on very old versions like v5.20 and below but it's recommended to use it when interacting with dictionaries/arrays as with square brackets it can get confusing where you are very quickly.
</pre>
      
==<p><b>Requires a condition (loop)</b></p>==
 
==<p><b>Requires a condition (loop)</b></p>==
Line 48: Line 48:  
Returns the package name of the application that was launched, for example, if it were MacroDroid the response would be "com.arlosoft.macrodroid".
 
Returns the package name of the application that was launched, for example, if it were MacroDroid the response would be "com.arlosoft.macrodroid".
 
</pre>
 
</pre>
 +
 
=== Application Launched/Closed ===
 
=== Application Launched/Closed ===
 
* '''''Application name'''''
 
* '''''Application name'''''
Line 59: Line 60:  
Returns the package name of the application that was launched, for example, if it were MacroDroid the response would be "com.arlosoft.macrodroid".
 
Returns the package name of the application that was launched, for example, if it were MacroDroid the response would be "com.arlosoft.macrodroid".
 
</pre>
 
</pre>
=== Bluethooth (Device connected or device disconnected) ===
+
 
 +
=== Bluetooth (Device connected or device disconnected) ===
 
* '''''Bluetooth device name'''''
 
* '''''Bluetooth device name'''''
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 68: Line 70:  
{bluetooth_device_name} = Headphones 1 Pro
 
{bluetooth_device_name} = Headphones 1 Pro
 
</pre>
 
</pre>
 +
 
=== Call (Active, Ended, Incoming, Missed, Outgoing) ===
 
=== Call (Active, Ended, Incoming, Missed, Outgoing) ===
 
* '''''Call group(s)'''''
 
* '''''Call group(s)'''''
Line 123: Line 126:  
{sms_sim_name} = Vodafone
 
{sms_sim_name} = Vodafone
 
</pre>
 
</pre>
 +
 
=== Logcat ===
 
=== Logcat ===
 
* '''''Logcat entry line'''''
 
* '''''Logcat entry line'''''
Line 161: Line 165:  
{not_app_package} - is the package name of the application that created the notification.
 
{not_app_package} - is the package name of the application that created the notification.
 
</pre>
 
</pre>
 +
 
=== Spotify ===
 
=== Spotify ===
 
* '''''Spotify track id'''''
 
* '''''Spotify track id'''''
Line 186: Line 191:  
{spotify_is_playing}- Returns a boolean state (true or false).
 
{spotify_is_playing}- Returns a boolean state (true or false).
 
</pre>
 
</pre>
 +
 
=== System settings ===
 
=== System settings ===
 
* '''''System setting category'''''
 
* '''''System setting category'''''
Line 199: Line 205:  
{system_setting_value} - Returns the value of the key.
 
{system_setting_value} - Returns the value of the key.
 
</pre>
 
</pre>
 +
 +
=== Text Shared to MacroDroid ===
 +
* '''''Shared Text'''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
{shared_text}
 +
 +
Gets the text that was sent from another application (Selected text > Share text > MacroDroid)
 +
</pre>
 +
 
=== UI click ===
 
=== UI click ===
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
{ui_click_text} - Gets the text it matches, most useful when the text it needs to match is a regular expression or text that changes constantly using some variable.
 
{ui_click_text} - Gets the text it matches, most useful when the text it needs to match is a regular expression or text that changes constantly using some variable.
 
</pre>
 
</pre>
 +
 +
=== USB device connected ===
 +
* '''''USB product name'''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
{usb_product_name} -  Gets the name of the device.
 +
</pre>
 +
* '''''USB manufacturer name'''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
{usb_manufacturer_name} -  Gets the name of the manufacturer.
 +
</pre>
 +
* '''''USB device hash code'''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
{usb_device_hash} - It is a unique identifier that is generated for each USB device.
 +
</pre>
 +
 
=== Weather ===
 
=== Weather ===
 
* '''''Temperature (Celsius)'''''
 
* '''''Temperature (Celsius)'''''
Line 236: Line 266:  
{weather_conditions} - Weather conditions.
 
{weather_conditions} - Weather conditions.
 
</pre>
 
</pre>
 +
 
=== Webhook URL ===
 
=== Webhook URL ===
 
* '''''Webhook caller IP address'''''
 
* '''''Webhook caller IP address'''''
Line 245: Line 276:  
{webhook_caller_ip_address} = 189.172.30.212
 
{webhook_caller_ip_address} = 189.172.30.212
 
</pre>
 
</pre>
 +
 
==<p><b>Does not require a trigger to operate</b></p>==
 
==<p><b>Does not require a trigger to operate</b></p>==
 
This magic text list does not need a specific trigger to appear.
 
This magic text list does not need a specific trigger to appear.