-1

I was looking for examples of how to make a screenshot of an inactive window, but I did not find it. I want to take a screenshot of the game that works in the window, and not in full screen mode. Which can be blocked by other windows.

I found some examples on the Internet, but could not implement in my project.

Could you set an example of how to do this with the help of EasyHook and SharpDX (or SlimDX) on language C#?

I'll be very grateful!

  • 1
    "I found some examples on the Internet, but could not implement in my project." - Why can't you implement them? – Dai Dec 29 '18 at 18:04
  • because that doesn't work. I tried to do this tutorial: http://spazzarama.com/2011/03/14/c-screen-capture-and-overlays-for-direct3d-9-10-and-11-using-api-hooks/ but nothing happened, the tutorial talks about slimdx. I downloaded the project from the github, and there is generally used Sharpdx. – user3436684 Dec 29 '18 at 18:23
  • I even when launch his project, and I try to take a screenshot and nothing happens! – user3436684 Dec 29 '18 at 19:08

1 Answers1

1

I created an example project for this on GitHub, https://github.com/spazzarama/Direct3DHook

Allows screen capture and drawing an overlay into the Direct3D target application using C#, EasyHook and SharpDX.

Keep in mind that some games will employ anti-injection/hooking techniqiues that may block EasyHook.

In addition this usually won’t work for minimised applications as it is best practice to pause your render loop when minimised.

Justin Stenning
  • 1,837
  • 1
  • 15
  • 19