예제 #1
0
        public void screenCapture(bool showCursor, bool Partial = false)
        {
            ScreenPath = OwnShotHelpers.RandomName(ssnamelength) + (Partial ? "_pre" : "") + ".png";

            SetWindowStyle(true);
            System.Threading.Thread.Sleep(25);

            OwnShotHelpers.CaptureImage(showCursor, ScreenPath);

            if (!Partial)
            {
                ShowBalloon(OwnShotHelpers.UploadImage(ScreenPath));
            }

            SetWindowStyle(!Partial);

            if (!Partial && OwnShotHelpers.GetConfig("DeleteMode") == "Yes")
            {
                File.Delete(ScreenPath);
            }
        }