40aff77dd10103179693c70c113a908a13088283
get_viewport_screenshot 使用 GDI 抓屏(GetDC+BitBlt 读屏幕内容), 若 CAD 窗口被其它窗口遮挡会截到遮挡窗口。现增加: - IsWindowOccluded:客户区中心点经 WindowFromPoint 取顶层窗口, 根窗口不同即判定被遮挡。 - ForceWindowForeground:AttachThreadInput + SetWindowPos/BringWindowToTop/ SetForegroundWindow 强制置前,RedrawWindow(RDW_UPDATENOW) 同步重绘。 - Execute 中先检测遮挡/前台状态,必要时置前并 Sleep(120) 等 DWM 合成, 返回文本按「已置前」「仍被遮挡」给出提示。
Languages
Python
69.5%
C++
27.8%
CMake
2.6%