Dxgi4py
Python DXGI截图。由于中文搜索引擎关于python dxgi的结果均不可用,自写一个c++库用于帮助有需要的人。可指定窗口以及截图区域,以numpy array方式返回结果。 解决DirectX游戏截图黑屏, 窗口被遮挡或在屏幕外导致的截图不完整等情况。
Install / Use
/learn @wangpy1995/Dxgi4pyREADME
GetStarted
1.python调用参考dxgi_sample.py,其中results.png为dxgi_sample.py运行效果截图,通过hwnd截取到了test.png中被遮挡的模拟器窗口。
2.dxgi4py.dll为win10下编译好的64位dll库,可直接使用。
3.条件有限,仅在64位win10 19045.3996版本下测试并验证通过。
Related Skills
node-connect
334.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
82.3kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
82.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
334.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
