using System; using System.Windows.Forms; namespace ScreenshotForm { //Program has 9 parameters, //Required Parameter //--output [path with imagename.png] Ex. --output C:\Users\Nick\ImageFile\image.PNG //Optional Parameters //--url [url to launch on open] Ex. --url www.trade-ideas.com //--width [width of browser] Ex. --width 1200 //--height [height of browser] Ex. --height 900 //--no-exit (doesn't close on after loading) Ex. --no-exit //--screenshot-x [start of image from left] Ex. --screenshot-x 727 //--screenshot-y [start of image from top] Ex. --screenshot-y 282 //--screenshot-width [width of the image] Ex. --screenshot-width 414 //--screenshot-height [height of the image] Ex. --screenshot-height 300 static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new ScreenShotForm()); } } }