Tags: Mobile web edit Mobile edit |
Tags: Mobile web edit Mobile edit |
Line 3: |
Line 3: |
| | | |
| The magic text allows some other value to be substituted at the point of invocation, rather than standard static text that will never changed. For example it's possible to add and action that reference a variable via magic text and that variable's value will be substituted at the point that action is run. | | The magic text allows some other value to be substituted at the point of invocation, rather than standard static text that will never changed. For example it's possible to add and action that reference a variable via magic text and that variable's value will be substituted at the point that action is run. |
| + | |
| + | 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> | | </pre> |
| | | |
Revision as of 14:40, 1 November 2023
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.
The magic text allows some other value to be substituted at the point of invocation, rather than standard static text that will never changed. For example it's possible to add and action that reference a variable via magic text and that variable's value will be substituted at the point that action is run.
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 that does NOT depend on triggers.
|
Magic text depends on triggers.
|
Updated to version 5.33.x (May 2023).
Stopwatches
|
App installed/updated/removed trigger:
- Application name
- Application package
|
Variables users have created
|
Application opened/closed trigger:
|
String variable length
|
Call triggers:
|
String variable value
|
Bluethooth (Device connected or device disconnected):
|
Dictionary/Array size
|
SMS recived:
- Incoming SMS contact
- incoming SMS message
- incoming SMS number
|
New line
|
Logcat:
|
Foreground app name
|
Spotify:
- Track ID
- Artist name
- Album name
- Track name
- Track length (s)
- Is playing
|
Foreground app package
|
Notifications:
- Title
- Ticker text
- Sub text
- Text lines
- Big lines
- Action names
- App name
- App package
|
Current brightness
|
Weather
- Temperature (Celsius)
- Temperature (Fahrenheit)
- Wind speed m/s
- Wind speed (mph)
- Wind speed (kmh)
- Wind direction (degrees)
- Humidity
- Weather conditions
|
Current brightness (Android 9+ alternative)
|
Screen timeout (seconds)
|
Current battery %
|
Battery temp ºC
|
"Power (on/off)
|
Clipboard text
|
Current IP address
|
Current IP address (V6)
|
Wifi SSID
|
Wifi signal strength
|
Cell tower signal strength
|
Day of the week
|
Day of the month
|
Week of year
|
Month
|
Month (as digit)
|
Year
|
Hour of day
|
Hour of day (Leanding zero)
|
Hour of day (12h)
|
Minute
|
Second
|
am/pm
|
System time
|
System time (ms)
|
Webhook Base Url
|
System setting (System)
|
System setting (Global)
|
System setting (Secure)
|
Cell connection type
|
Mobile country code
|
Mobile network code
|
Location area code
|
IMEI
|
Cell id
|
Last known location (lat,lon)
|
Last known location (lat)
|
Last known location (lon)
|
Last known location (altitude)
|
Last known location (accuracy meters)
|
Last known location (link)
|
Last known location (time)
|
Last location speed (kmh)
|
Last location speed (mph)
|
Current volume (Alarm)
|
Current volume (Media / Music)
|
Current volume (Ringer)
|
Current volume (Notification)
|
Current volume (System sounds)
|
Current volume (Voice call)
|
Current volume (Bluetooth voice)
|
Macro name
|
Macro id
|
Macro category
|
Device serial
|
Device name
|
Device uptime
|
Device uptime (s)
|
Device manufacturer
|
Device model
|
Macrodroid version
|
Macrodroid is pro
|
Android version
|
Android version (SDK level)
|
Sim operator name
|
Screen resolution
|
Screen resolution (X)
|
Screen resolution (Y)
|
RAM (Total)
|
RAM (available)
|
Storage total (external)
|
Storage free (external)
|
Storage total (internal)
|
Storage free (external)
|
List of magic texts (in detail) [Work in progress]
Wifi/cell signal strength