Rav
New member
- Joined
- Jun 19, 2024
- Messages
- 4
- Programming Experience
- 1-3
Hi,
I am struggling with a thing in c#. I would like to open cmd application, perform two actions:
.StartInfo.Arguments = @"/C echo %date%-%time%";
.Arguments = @"/c netsh wlan show interfaces";
and than create a screenshot of cmd application. But only cmd application.
It is not a problem to perform mentioned actions but unfortunately I cannot force c# to choose correct screen, position and size to perform a screenshot.
I tried to find position and size of cmd (didn't work, only get some random numbers) or resize and change position of cmd (...also didn't work). Can you please help me with that? Perhaps provide me with simple, working example
I am struggling with a thing in c#. I would like to open cmd application, perform two actions:
.StartInfo.Arguments = @"/C echo %date%-%time%";
.Arguments = @"/c netsh wlan show interfaces";
and than create a screenshot of cmd application. But only cmd application.
It is not a problem to perform mentioned actions but unfortunately I cannot force c# to choose correct screen, position and size to perform a screenshot.
I tried to find position and size of cmd (didn't work, only get some random numbers) or resize and change position of cmd (...also didn't work). Can you please help me with that? Perhaps provide me with simple, working example