ScreenCapture.bat 无窗口标题

ScreenCapture.bat 无窗口标题

我怎样才能让这个脚本捕获没有标题的前景窗口?

https://github.com/npocmaka/batch.scripts/blob/master/hybrids/.net/c/screenCapture.bat

我需要它,这样我就可以继续进行 delphi 项目而不必更改所有 var 的坐标。

我知道这是可能的,因为我的 delphi 应用程序上有一个 screenshot() 函数,让我可以选择

  GetWindowRect(Win, WinRect);
  DC := GetWindowDC(Win);

或者

  Windows.GetClientRect(Win, WinRect);
  DC := GetDC(Win);

我只是不知道如何在这批中做到这一点。

相关内容