Difference between revisions of "Actions"
m |
Tags: Mobile web edit Mobile edit |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 36: | Line 36: | ||
[[Action: Ambient Display|Ambient Display]] | [[Action: Ambient Display|Ambient Display]] | ||
+ | |||
+ | [[Action: Animation Overlay|Animation Overlay]] | ||
[[Action: Android Shortcut|Android Shortcut]] | [[Action: Android Shortcut|Android Shortcut]] | ||
Line 46: | Line 48: | ||
[[Action: Authenticate User|Authenticate User]] | [[Action: Authenticate User|Authenticate User]] | ||
+ | |||
+ | [[Action: Array Manipulation|Array Manipulation]] | ||
[[Action: Autosync On/Off|Autosync On/Off]] | [[Action: Autosync On/Off|Autosync On/Off]] | ||
Line 67: | Line 71: | ||
[[Action: Car Mode|Car Mode]] | [[Action: Car Mode|Car Mode]] | ||
− | [[Action: Check Text On Screen|Check Text | + | [[Action: Check Pixel Colour|Check pixel colour]] |
+ | |||
+ | [[Action: Check Text In Screenshot|Check Text In Screenshot]] | ||
+ | |||
+ | [[Action: Check Text On Screen|Check Text On Screen]] | ||
[[Action: Clear App Data|Clear App Data]] | [[Action: Clear App Data|Clear App Data]] | ||
Line 148: | Line 156: | ||
[[Action: Get Light Level|Get Light Level]] | [[Action: Get Light Level|Get Light Level]] | ||
+ | |||
+ | [[Action: Get Text From View Id|Get Text From View Id]] | ||
[[Action: GPS Enable/Disable|GPS Enable/Disable]] | [[Action: GPS Enable/Disable|GPS Enable/Disable]] | ||
Line 156: | Line 166: | ||
[[Action: HTTP Request|HTTP Request]] | [[Action: HTTP Request|HTTP Request]] | ||
+ | |||
+ | [[Action: HTTP Server|HTTP Server]] | ||
[[Action: Immersive Mode|Immersive Mode]] | [[Action: Immersive Mode|Immersive Mode]] | ||
Line 228: | Line 240: | ||
[[Action: Read Screen Contents|Read Screen Contents]] | [[Action: Read Screen Contents|Read Screen Contents]] | ||
+ | |||
+ | [[Action: Read Screenshot Contents|Read Screenshot Contents]] | ||
[[Action: Reboot/Power Off|Reboot/Power Off]] | [[Action: Reboot/Power Off|Reboot/Power Off]] | ||
Line 298: | Line 312: | ||
[[Action: Take Screenshot|Take Screenshot]] | [[Action: Take Screenshot|Take Screenshot]] | ||
+ | |||
+ | [[Action: Text_from_Image_(OCR)|Text from Image (OCR)]] | ||
[[Action: Text Manipulation|Text Manipulation]] | [[Action: Text Manipulation|Text Manipulation]] | ||
Line 306: | Line 322: | ||
[[Action: Touch Screen|Touch Screen]] | [[Action: Touch Screen|Touch Screen]] | ||
− | |||
− | |||
[[Action: UDP Command|UDP Command]] | [[Action: UDP Command|UDP Command]] |
Latest revision as of 12:26, 15 August 2024
An action is something your device can do when a macro runs. A macro must have at least one action to be valid.
Synchronous vs asynchronous
MacroDroid actions typically execute quickly, but certain actions like HTTP requests or shell scripts may take longer. To ensure that subsequent actions wait for these longer actions to complete before continuing, enable the 'Block next action until complete' option in the action's configuration GUI. Otherwise, the action will run asynchronously while other actions continue. In traditional programming languages, you could pass a callback function to execute after the asynchronous action is complete. This allows you to perform additional actions or work with the data returned by the asynchronous action. However, MacroDroid's inner workings are arbitrary, so there is no systematic option for this. Instead, you must rely on different workarounds.
Control flow
List of Actions
Notification LED Enable/Disable
Priority Mode / Do Not Disturb