cristalcommons
Member
Hello, pals!
Have you ever used an app to block other apps to avoid wasting too much time, such as StayFree, DigitalDetox, etc.?
If so, have you ever used such blocking apps like these to block messaging apps like WhatsApp, Telegram, Signal, etc.?
If that applies to you, have you ever wished you could have the option to block specific chats instead of the whole app, because there are chats there that you still would need to use in your day to day life without being blocked (e.g. Telegram's Saved Messages?)?
Well, thanks to user LF0's help with a different macro (Screen Content Macro to Prevent Uninstalling Apps), I have learnt how to create a Macro that blocks specific chats but does not block messaging apps as a whole.
PREPARATIONS
MACRO 'CHAT BLOCKING'
TRIGGER
ACTION
CONSTRAINTS
Note: optional, if you want the chat blocking to work only according to time blocks of the day.
(Mode: OR)
HOW TO PREVENT CHANGES ON THIS MACRO or UNINSTALLING MACRODROID
Please read the thread 'Screen Content Macro to Prevent Uninstalling Apps' (thanks to Endercraft and Jacob L for their help!)
I hope this helps
Have you ever used an app to block other apps to avoid wasting too much time, such as StayFree, DigitalDetox, etc.?
If so, have you ever used such blocking apps like these to block messaging apps like WhatsApp, Telegram, Signal, etc.?
If that applies to you, have you ever wished you could have the option to block specific chats instead of the whole app, because there are chats there that you still would need to use in your day to day life without being blocked (e.g. Telegram's Saved Messages?)?
Well, thanks to user LF0's help with a different macro (Screen Content Macro to Prevent Uninstalling Apps), I have learnt how to create a Macro that blocks specific chats but does not block messaging apps as a whole.
PREPARATIONS
- If you're reading this by using a search engine on how to blocking chats but don't have Macrodroid installed, get this app from the Google Play Store (only for Android).
- Go to the messaging apps whose chats you want to block, and write a new message or edit the first few words of an old message in that conversation to put an chat blocking identifier code that helps you identify the chats to block, e. g.
schedule_block
,macrodroid_block
, etc.
Note: Not all apps will let you pin messages, and not all apps pin messages forever: e.g. WhatsApp can only let you pin messages for 24 hours, 7 days or 1 month; Telegram does this just fine.
- Pin that message *just for you* to be visible in chats with these people or groups you want to block.
It should look like this:
- Create the macro 'Chat Blocking' following the steps below.
MACRO 'CHAT BLOCKING'
TRIGGER
- Screen Content (On Screen)
- Applications: WhatsApp, Telegram (any app for messaging in which there are chats you want to block)
- App activity: On Screen
- Match Option: Text content
- Text to match: (chat blocking identifier code)
- Read Screen Update Rate: 0,1.
ACTION
- Check Text On Screen
- Text condition: Matches
- Text:
(person1)|(person2)|(person3)
- Note 1: In the name of each person must be the *full name* of that person or group as it appears in their chat, not just a word from the name.
- Note 2: I have given 3 chat names as an example, but you can really block as many chats as you want, as long as you separate them between Vertical bars
|
.
- Enable regular expression matching: Yes
- Save on screen state to boolean variable: (create new)
- Enter variable name: e. g. chat_blocking
- Create variable now: Yes
- Launch Home Screen
- Add Constraint
- MacroDroid Variable
- Select MacroDroid variable: chat_block_app
- MacroDroid Variable
- Add Constraint
CONSTRAINTS
Note: optional, if you want the chat blocking to work only according to time blocks of the day.
(Mode: OR)
- Time of Day
- From (Time A) to (Time B).
HOW TO PREVENT CHANGES ON THIS MACRO or UNINSTALLING MACRODROID
Please read the thread 'Screen Content Macro to Prevent Uninstalling Apps' (thanks to Endercraft and Jacob L for their help!)
I hope this helps
Last edited: