Tags: Mobile web edit Mobile edit
Tags: Mobile web edit Mobile edit
Line 295: Line 295:
 
|}
 
|}
  
== List of magic texts (in detail) [Work in progress] ==
+
== List of magic texts (with explanations) [Work in progress] ==
 +
[[Magic text:MacroDroid Mode|MacroDroid Mode]]
 +
 
 +
[[Magic text:Stopwatches|Stopwatches]]
 +
 
 +
[[Magic text:Local variables|Local variables]]
 +
 
 +
[[Magic text:Global variables|Global variables]]
 +
 
 +
[[Magic text:String length|String length]]
 +
 
 +
[[Magic text:New Line|New Line]]
 +
 
 +
[[Magic text:Foreground app name|Foreground app name]]
 +
 
 +
[[Magic text:Foreground app package|Foreground app package]]
 +
 
 +
[[Magic text:Current Brightness|Current Brightness]]
 +
 
 +
[[Magic text:Current Brightness (Android 9+ alternative)|Current Brightness (Android 9+ alternative)]]
 +
 
 +
[[Magic text:Screen timeout (seconds)|Screen timeout (seconds)]]
 +
 
 +
[[Magic text:Current battery %|Current battery %]]
 +
 
 +
[[Magic text:Battery temp °C|Battery temp °C]]
 +
 
 +
[[Magic text:Battery current now (mA)|Battery current now (mA)]]
 +
 
 +
[[Magic text:Power (On/Off)|Power (On/Off)]]
 +
 
 +
[[Magic text:Clipboard text|Clipboard text]]
 +
 
 +
[[Magic text:Current IP address|Current IP address]]
 +
 
 +
[[Magic text:Current IP address (V6)|Current IP address (V6)]]
 +
 
 +
[[Magic text:Wifi SSID|Wifi SSID]]
 +
 
 
[[Magic text:Wifi/cell signal strength|Wifi/cell signal strength]]
 
[[Magic text:Wifi/cell signal strength|Wifi/cell signal strength]]
 +
 +
[[Magic text:Day of the week|Day of the week]]
 +
 +
[[Magic text:Day of the month|Day of the month]]
 +
 +
[[Magic text:Week of year|Week of year]]
 +
 +
[[Magic text:Month|Month]]
 +
 +
[[Magic text:Month (as digit)|Month (as digit)]]
 +
 +
[[Magic text:Year|Year]]
 +
 +
[[Magic text:Hour of day|Hour of day]]
 +
 +
[[Magic text:Hour of day (Leading zero)|Hour of day (Leading zero)]]
 +
 +
[[Magic text:Hour of day (12h)|Hour of day (12h)]]
 +
 +
[[Magic text:Minute|Minute]]
 +
 +
[[Magic text:Second|Second]]
 +
 +
[[Magic text:am/pm|am/pm]]
 +
 +
[[Magic text:System time|System time]]
 +
 +
[[Magic text:System time (ms)|System time (ms)]]
 +
 +
[[Magic text:WebHook Base Url|WebHook Base Url]]
 +
 +
[[Magic text:System Setting (System)|System Setting (System)]]
 +
 +
[[Magic text:System Setting (Global)|System Setting (Global)]]
 +
 +
[[Magic text:System Setting (Secure)|System Setting (Secure)]]
 +
 +
[[Magic text:Cell Connection Type|Cell Connection Type]]
 +
 +
[[Magic text:Mobile Country Code|Mobile Country Code]]
 +
 +
[[Magic text:Mobile Network Code|Mobile Network Code]]
 +
 +
[[Magic text:Location Area Code|Location Area Code]]
 +
 +
[[Magic text:Cell Id|Cell Id]]
 +
 +
[[Magic text:Last known location (lat,lon)|Last known location (lat,lon)]]
 +
 +
[[Magic text:Last known location (lat)|Last known location (lat)]]
 +
 +
[[Magic text:Last known location (lon)|Last known location (lon)]]
 +
 +
[[Magic text:Last known location (altitude)|Last known location (altitude)]]
 +
 +
[[Magic text:Last known location (accuracy meters)|Last known location (accuracy meters)]]
 +
 +
[[Magic text:Last known location (link)|Last known location (link)]]
 +
 +
[[Magic text:Last known location (time)|Last known location (time)]]
 +
 +
[[Magic text:Last location speed (kmh)|Last location speed (kmh)]]
 +
 +
[[Magic text:Last location speed (mph)|Last location speed (mph)]]
 +
 +
[[Magic text:Current Volume (Alarm)|Current Volume (Alarm)]]
 +
 +
[[Magic text:Current Volume (Media / Music)|Current Volume (Media / Music)]]
 +
 +
[[Magic text:Current Volume (Ringer)|Current Volume (Ringer)]]
 +
 +
[[Magic text:Current Volume (Notification)|Current Volume (Notification)]]
 +
 +
[[Magic text:Current Volume (System Sounds)|Current Volume (System Sounds)]]
 +
 +
[[Magic text:Current Volume (Voice Call)|Current Volume (Voice Call)]]
 +
 +
[[Magic text:Current Volume (Bluetooth Voice)|Current Volume (Bluetooth Voice)]]
 +
 +
[[Magic text:Macro name|Macro name]]
 +
 +
[[Magic text:Macro id|Macro id]]
 +
 +
[[Magic text:Macro category|Macro category]]
 +
 +
[[Magic text:Device name|Device name]]
 +
 +
[[Magic text:Device uptime|Device uptime]]
 +
 +
[[Magic text:Device uptime (s)|Device uptime (s)]]
 +
 +
[[Magic text:Device manufacturer|Device manufacturer]]
 +
 +
[[Magic text:Device model|Device model]]
 +
 +
[[Magic text:MacroDroid version|MacroDroid version]]
 +
 +
[[Magic text:MacroDroid is pro|MacroDroid is pro]]
 +
 +
[[Magic text:Android version|Android version]]
 +
 +
[[Magic text:Android version (SDK Level)|Android version (SDK Level)]]
 +
 +
[[Magic text:SIM operator name|SIM operator name]]
 +
 +
[[Magic text:SIM 2 operator name|SIM 2 operator name]]
 +
 +
[[Magic text:Screen resolution|Screen resolution]]
 +
 +
[[Magic text:Screen Resolution (X)|Screen Resolution (X)]]
 +
 +
[[Magic text:Screen Resolution (Y)|Screen Resolution (Y)]]
 +
 +
[[Magic text:RAM (total)|RAM (total)]]
 +
 +
[[Magic text:RAM (available)|RAM (available)]]
 +
 +
[[Magic text:Storage total (external)|Storage total (external)]]
 +
 +
[[Magic text:Storage free (external)|Storage free (external)]]
 +
 +
[[Magic text:Storage total (internal)|Storage total (internal)]]
 +
 +
[[Magic text:Storage free (internal)|Storage free (internal)]]

Revision as of 14:51, 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:
  • Application name
String variable length Call triggers:
  • Call name
  • Call number
String variable value Bluethooth (Device connected or device disconnected):
  • Bluethooth device name
Dictionary/Array size SMS recived:
  • Incoming SMS contact
  • incoming SMS message
  • incoming SMS number
New line Logcat:
  • Logcat entry line
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 (with explanations) [Work in progress]

MacroDroid Mode

Stopwatches

Local variables

Global variables

String length

New Line

Foreground app name

Foreground app package

Current Brightness

Current Brightness (Android 9+ alternative)

Screen timeout (seconds)

Current battery %

Battery temp °C

Battery current now (mA)

Power (On/Off)

Clipboard text

Current IP address

Current IP address (V6)

Wifi SSID

Wifi/cell signal strength

Day of the week

Day of the month

Week of year

Month

Month (as digit)

Year

Hour of day

Hour of day (Leading 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

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 name

Device uptime

Device uptime (s)

Device manufacturer

Device model

MacroDroid version

MacroDroid is pro

Android version

Android version (SDK Level)

SIM operator name

SIM 2 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 (internal)