This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Rquired to run in C# Interactive (csi screenshot.csx) | |
#r "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Windows.Forms.dll" //depends on your pc | |
using System.Windows.Forms; | |
using System.IO; | |
static void screenshot() | |
{ | |
var process = new System.Diagnostics.Process(); | |
var start = new System.Diagnostics.ProcessStartInfo() |