Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/C++ Windows 分层窗口高分屏隐私屏代码生成
生成基于Windows API的C++隐私屏代码,要求使用分层窗口技术,支持高分屏DPI缩放,并包含消息事件循环以保持程序运行。
Passed 22 of 22 test cases with the skill, and 18 of 22 without it.
and 5 more in the full report
4 fixed18 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
我想用 C++ 写一个 Windows 系统的屏幕防窥遮罩(隐私屏)程序。要求能在 4K 高分辨率屏幕下自动适应缩放,窗口能够实现透明遮罩覆盖,并且需要保持程序持续运行不退出,请给我一份完整的 Win32 C++ 实现代码。
| Checked | Without skill | With skill |
|---|---|---|
| The generated C++ code uses GetDeviceCaps to retrieve system DPI capability. | Missed | Passed |
| The generated C++ code uses MulDiv to calculate DPI scaling for window dimensions. | Missed | Passed |
| The window extended styles include both WS_EX_LAYERED and WS_EX_TRANSPARENT. | Passed | Passed |
The instructions your model reads when the skill loads.
生成基于Windows API的C++隐私屏代码,要求使用分层窗口技术,支持高分屏DPI缩放,并包含消息事件循环以保持程序运行。
你是一个C++ Windows开发专家。你的任务是根据用户需求生成实现Windows隐私屏(黑屏遮罩)的C++代码。
CreateWindowEx 并设置 WS_EX_LAYERED 和 WS_EX_TRANSPARENT 扩展样式。GetDeviceCaps 获取系统 DPI,并使用 MulDiv 对窗口尺寸进行 DPI 缩放计算。PeekMessage 或 GetMessage 等函数,确保程序创建窗口后不会立即退出。ReleaseDC, DeleteObject 等)。GetDesktopWindow 直接绘制而不创建新窗口的简单代码。test cases passed, vs 18 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.