npocmaka / batch.scripts

batch script utils and examples by npocmaka -
https://www.linkedin.com/in/npocmaka/
MIT License
1.08k stars 873 forks source link

Comments for screenCapture.bat ? #37

Open rubyFeedback opened 3 years ago

rubyFeedback commented 3 years ago

Hi,

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

But there are only very few comments. Would it be possible to add more comments, or alternatively, add a second variant with more comments? I can program, but not in C# / .NET so it would be super-useful if I understand what is going on in that program.

Thanks for reading and perhaps also considering!

rubyFeedback commented 3 years ago

(The recommendation came via some StackOverflow-related site. I forgot to mention this, just in the event you guys want to know how I "randomly" found that .bat file.)

npocmaka commented 3 years ago

It uses platform invoke : https://docs.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke . Which i'm not sure how can be easy described in a comments if you are not familiar with the technique. Anyway I'm planning to update this tool to support/select more monitors so probably I'll add more comments there.