ScreenCapture.bat Without Window Title

1

How can i make this script capture foreground window without The title ?

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

I need it so i can continue on a delphi project without having to change all var's coordinates.

I know it's possible cause i have a screenshot() function on my delphi app that let's me choose between

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

OR

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

I just don't know how to do it in this batch.

Flavio Correia

Posted 2016-08-09T16:45:08.860

Reputation: 11

What you can do in BASH and what you can do with Delphi are two entirely different things. – Ramhound – 2016-08-09T16:46:20.503

This script uses the same WinApi i call on Delphi, so i thought it was possible. – Flavio Correia – 2016-08-09T17:03:55.377

1You abuse a batch file to execute .net code. I think you should ask your question on Stack Overflow instead. They are more likely to help you as this is not really about .bat programming, but more about .net programming – LPChip – 2016-08-09T17:49:24.600

No answers