question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Black screen when capturing from multiple clients

See original GitHub issue

I had a game bot that worked by image recognition and I’m trying to use Direct3DHook so it can detect images in background

The problem is that sometimes I’m getting black screens as result:

image

I guess the bot is trying to process images before they’re captured.

I don’t understand why processing images is an async method while processing them takes only a few miliseconds.

For example, trying to do: CaptureImage(); Thread.Sleep(1000); It will only do the Sleep but not the CaptureImage();

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Kuhicopcommented, Apr 19, 2020

Not being able to make this work: GetScreenshot

I’ve just tested now by replacing the btnCapture_Click event code with var res = _captureProcess.CaptureInterface.GetScreenshot();

I get null as return

0reactions
Aks-4125commented, Jul 30, 2020

I am also getting null at _captureProcess.CaptureInterface.GetScreenshot();

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] OBS Game Capture Black Screen Issue
The reason for the OBS black screen under this situation is most likely due to OBS and the game you want to record...
Read more >
5 Ways to Fix OBS Black Screen Game Capture
Step 3: Launch your game and attempt OBS Studio to capture the action. For many customers, happily, the OBS game capture dark screen...
Read more >
How do I solve OBS capture specific window black screen?
I want to stream with a more professional look and I want the *ehem* League client to be captured seprately to the game....
Read more >
FIX OBS BLACK SCREEN DISPLAY CAPTURE ... - YouTube
FIX OBS BLACK SCREEN DISPLAY CAPTURE [Easy FIX 2023] multiple solutions - FIX OBS Black Screen Display Capture !
Read more >
How to Fix an OBS Black Screen Capture Error
There are a few causes for the OBS black screen capture error, ... right pane to the Multiple displays section and select Graphics...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found