Why does "Screen content: Off Screen" trigger fire when it shouldn't?

JoeReMi

Member
The "screen content: off screen" trigger is supposed to fire when certain content is removed from the screen. However in the attached macro, it behaves strangely:
  • The trigger fires when the MD menu appears instead of disappears
  • The blocked word "macro" is present nowhere on the screen before the trigger fires.
Does someone know what's going on here?
 

Attachments

  • Screen_content_issue.png
    Screen_content_issue.png
    66.9 KB · Views: 16
  • Screen_content_issue.macro
    2.3 KB · Views: 2

Endercraft

Moderator (& bug finder :D)
One possibility is that the text is here as replacement for an image. If you run the read screen contents action somewhere with images, you may see replacement text.
 

JoeReMi

Member
One possibility is that the text is here as replacement for an image. If you run the read screen contents action somewhere with images, you may see replacement text.
My issue is not with the "read screen content" action but with the screen content trigger.

Or are you saying I could use that action to find out if the issue you described is occuring?
 

Endercraft

Moderator (& bug finder :D)
The screen content trigger is like executing a read screen contents action on a regular interval then checking if any of the keys match.
 

JoeReMi

Member
The screen content trigger is like executing a read screen contents action on a regular interval then checking if any of the keys match.
Ahh interesting, thank you!

Just to check: If the "screen content off screen" trigger is limited to app X, when exactly will it fire?
  1. If app X contains a trigger word, and then that trigger word is removed from the screen or...
  2. If any app contains a trigger word, and then that trigger word is removed due to app X being opened?
 

MacroDroidDev

Administrator
Staff member
The application is only checked at the point the trigger would be firing, So in the above cases it should fire in both cases 1 and 2.
 

JoeReMi

Member
The application is only checked at the point the trigger would be firing, So in the above cases it should fire in both cases 1 and 2.
Sorry, I am so confused right now that I'm not even sure what I'm confused about 😅

What do you mean by "the point the trigger would be firing?" Is it when the screen content query finds a trigger word has disappeared from the screen? In other words, is the order query > trigger word disappeared > foreground app?

If so, then at the point the trigger would be firing, cases 1 and 2 do not have the same foreground app.
  • In case 1, the foreground app could be any app.
  • In case 2, the foreground app is app X.
In other words, the trigger fires both in cases where app X is the foreground app and in cases where it isn't. This seems strange to me. Or does the "Applications" option not refer to the foreground app?
 
Top