Search results

  1. milerfreitas

    Help to create Macro for Secret Santa

    Hello, I want to create a Macro for the Americans "Secret Santa". I have a dictionary with the names and telephone numbers of the participants, I need to draw the names at random and at the end of the draw send an SMS to each participant informing them who their "Secret Friend" is. Can anyone...
  2. milerfreitas

    Error to create lists and dictionaries

    Greetings everyone! Does anyone know if MD changed the way of dealing with dictionaries and lists? I'm trying to create a log but MD is returning an error. It should look like this: "log" dictionary inside it, every day another dictionary would be created with the key "dd/mm/yyyy, this second...
  3. milerfreitas

    Function similar !preg_replace

    Hello everybody! I need a function similar to if(!preg_replace("my_regex", "my_string)) I tried to compare values and it didn't work. I'll explain, I have a variable "token" which is extracted from the webhook base url. In case I extract everything which is between the slash after the .com...
  4. milerfreitas

    Bug Report Macro Id

    Hello everyone! I recently created a macro that uses the Macro ID for validation. In theory, the macro id should change from macro to macro, however I found that if you lock the category with a password, the macros that are inside this category do not change the id even on another device. I...
  5. milerfreitas

    Category lock password loss

    At some point in my life I created a password for a category and I just can't remember it. What I already di: I tried all the passwords I use; I cleared the MD data; I cleared the cache; I reinstalled from scratch; I changed devices. None of that worked! Is there any way to reset this...
  6. milerfreitas

    Display last items of a list [array]

    My list has multiple items, I need to display the last 9 items in that list. I am not able to do this in MacroDroid. Someone who has experience with lists and dictionaries in MD that can help me?
  7. milerfreitas

    Help In Array (list)

    Hello everybody! I need help finding an occurrence within a text. My scenario is as follows: List of bad words [bad, lost, dirty] Text: "Neque porro quisquam est qui dolorem ipsum quia dolor lost it amet, consectetur, adipisci velit" How do I know if my text contains any of the words from my...
  8. milerfreitas

    caesar method data encryption

    Hello! I need to "encrypt" some text in my macro to make the data harder to read and protect my content. I know that no approach will be 100% secure, but I need to decrease the chances of anyone reading my macro. I thought about Caesar's encryption, but I couldn't implement it in the MD. Does...
  9. milerfreitas

    Send parameters via get request

    Hello everybody! I am trying to use http request function. I need to send some parameters (string variable value) in the query, if I send a word it works fine, but above a word it doesn't work. Am I doing something wrong? I have an http request action that sends the "message" parameter to my...
  10. milerfreitas

    Limit macro usage / Prevent sharing

    Hello! I have created a powerful macro that is intended to be used by a specific group of people (Uber app drivers). My macro takes the race information at the time of the request and displays the amount paid per km, per hour in that race. This helps the driver to choose the best races for...
  11. milerfreitas

    Arrays: help with creating, iterating, and displaying individual values

    Hello everybody! I'm trying to create a macro where I would need to work with arrays. In PHP (just for example) I can do it like this: <?php $contacts = array('name' => ['Maxmiler', 'Freitas'], 'phone' => ['21 91234-5678', '21 94321-8765']); print $contacts['name'][0]; // this would return me...
  12. milerfreitas

    Macro Help for Uber Driver

    I work as an Uber driver here in Brazil and I made a macro to help me choose rides. The macro works like this: -- Trigger -> Screen Content (use regex to get text) -- Actions -> Read screen content and save to dictionary -> Set variable with ride value -> Set boarding and trip mileage...
Top