Difference between revisions of "Magic text"
Endercraft (talk | contribs) Tags: Mobile web edit Mobile edit |
Endercraft (talk | contribs) Tags: Mobile web edit Mobile edit |
||
Line 295: | Line 295: | ||
|} | |} | ||
− | == List of magic texts ( | + | == 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.
List of magic texts (with explanations) [Work in progress]
Current Brightness (Android 9+ alternative)
Last known location (altitude)
Last known location (accuracy meters)
Current Volume (Media / Music)
Current Volume (System Sounds)