Jump to content

Recommended Posts

Posted (edited)

There's a certain process that's using setWindowDisplayAffinity to hide the whole screen from getting captured. I'm guessing it has a window that takes up the whole screen and is set to ignore clicks and is transparent so users can, but with setWindowDisplayAffinity set to WDA_MONITOR, any other processes attempting to capture the screen sees nothing but blackness.

Is there a way to bypass that?
One solution I could think of was either injecting a dll into that process and calling setWindowDisplayAffinity with WDA_NONE, and Idk if this is possible, but another way I thought of was hooking that setWindowDisplayAffinity and then doing nothing and returning successful result to caller.

I could test those and see for myself, but I wanted to know if there are other methods since I'm not sure if the process I'm targeting checks whether it's been tampered with or not.

Thanks 

Edited by Jos
removed black background. Please paste without formatting
Posted

Try turning off (End Process) dwm.exe in task manager and see if that helps, SetWindowsDisplayAffinity only works if the desktop is composed with dwm..

Some guy's script + some other guy's script = my script!

Posted
  On 3/4/2024 at 8:21 PM, Werty said:

Try turning off (End Process) dwm.exe in task manager and see if that helps, SetWindowsDisplayAffinity only works if the desktop is composed with dwm..

Expand  

That doesn't work, it closes and opens

  • 1 year later...
Posted
  On 3/4/2024 at 5:42 PM, eliakim63 said:

There's a certain process that's using setWindowDisplayAffinity to hide the whole screen from getting captured.

Expand  
  On 3/5/2024 at 2:31 AM, eliakim63 said:

That doesn't work, it closes and opens

Expand  

 

  On 6/6/2025 at 7:41 AM, marcusluong said:

Hi, did you find solution for this

Expand  

I doubt that user will answer.
I'd say: don't use that "certain process".

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...