public void WindowCapture() { ScreenPath = OwnShotHelpers.RandomName(ssnamelength) + ".png"; SetWindowStyle(true); System.Threading.Thread.Sleep(25); OwnShotHelpers.WindowCapture(ScreenPath); ShowBalloon(OwnShotHelpers.UploadImage(ScreenPath)); if (OwnShotHelpers.GetConfig("DeleteMode") == "Yes") { File.Delete(ScreenPath); } }
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); } }