Check pixel colour from chosen screenshot

hsurB

Well-known member
I had some fun with lately added action - check colour of pixel.
This action has huuge potencial and its one of the most requested features ever.
Its limitation for now is that it has to take screenshot of screen each time to check pixels and we usually don't need that when we want to analyze a lot of pixels.
After some tests I couldn't run this action more often than once/300ms in loop what wouldn't be a problem but when we want to check more pixels it becomes very limiting
So I thought maybe if the action didn't have to take screenshot each time we could analyze bigger parts of screen faster?
 
Last edited:

MacroDroidDev

Administrator
Staff member
If you or anyone knows a way to capture the screen contents from a background app without using a screenshot I'd be interested to know how. I am aware of the MediaProjection apis but having experimented with it in the past I found it very difficult to use and couldn't get it to work without prompting the user for permission each time.
 

hsurB

Well-known member
Understood.
No, unfortunately I don't know any way.
Hoped maybe there is a chance for checking from last taken photo or something. That would be already game changer in term of speed.
Don't get me wrong. All last updates were huge! Great work 😁
 

sampleuserhere

Active member
If you or anyone knows a way to capture the screen contents from a background app without using a screenshot I'd be interested to know how. I am aware of the MediaProjection apis but having experimented with it in the past I found it very difficult to use and couldn't get it to work without prompting the user for permission each time.

The user needs to allow MEDIA_PROJECT manually via adb.


Tasker and Automate does it the same way too and they both advices the user to execute the command to eliminate the prompt.

"On Android 10 the user confirmation requirement can be permanently disabled for Automate by using the ADB shell command or Shell command superuser to execute: appops set com.llamalab.automate PROJECT_MEDIA allow"
https://llamalab.com/automate/doc/b...set com.llamalab.automate PROJECT_MEDIA allow
 
Top