C
C#6mo ago
Max

Screenshot and save to file

Hi, i need to take a screenshot and save it to a folder, is that possible to do? I am working in an console application in .net 7
12 Replies
Yuri
Yuri6mo ago
what do you mean elaborate like do you need to take a screenshot from your desktop, or do you need your application to make a screenshot and save it somewhere
Max
MaxOP6mo ago
I need my application to take a screenshot and save it in a file, so like have a method that takes the screenshot
MODiX
MODiX6mo ago
DrSeggs
like do you need to take a screenshot from your desktop, or do you need your application to make a screenshot and save it somewhere
Quoted by
React with ❌ to remove this embed.
Buddy
Buddy6mo ago
There are different ways to take a screenshot. Please read what was mentioned
Kouhai
Kouhai6mo ago
If you want a cross-platform solution it'll be quite challenging, for me the best solution was to use this library, which is actually for screen capturing https://github.com/DarthAffe/ScreenCapture.NET
Max
MaxOP6mo ago
Well I have an open website and i need it to capture a picture of that website
Buddy
Buddy6mo ago
You can use Selenium if you want to capture screenshot of a website Selenium is a tool for automating websites
Max
MaxOP6mo ago
I will try to use this but i cant really figure out how to do it, can you help?
Kouhai
Kouhai6mo ago
If you want to only capture the screen of a website, do as Pluto said here
MODiX
MODiX6mo ago
Buddy
You can use Selenium if you want to capture screenshot of a website
Quoted by
React with ❌ to remove this embed.
Max
MaxOP6mo ago
👍 The problem is that the website i need to get the screenshot from is locked behind a login
Kouhai
Kouhai6mo ago
Selenium would be the best option then, login in using selenium and make it take a screenshot
Want results from more Discord servers?
Add your server