SHARE
TWEET

ImageDeCap Upload!




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- d += UploadPastebinCompleted;
- bw.RunWorkerAsync(clipboard);
- }
- if (Preferences.uploadToFTP)
- {
- BackgroundWorker bw2 = new BackgroundWorker();
- bw2.DoWork += Uploading.UploadToFTP;
- string name = DateTime.UtcNow.ToString("yyyyMMddHHmmssfff");
- bw2.RunWorkerAsync(new object[] { Preferences.FTPurl,
- Preferences.FTPusername,
- Preferences.FTPpassword,
- Encoding.ASCII.GetBytes(clipboard),
- $"{name}.txt" });
- }
- if (Preferences.SaveImages && Directory.Exists(Preferences.SaveImagesLocation))
- {
- string name = DateTime.UtcNow.ToString("yyyyMMddHHmmssfff");
- string whereToSave = $"{Preferences.SaveImagesLocation}\\{name}.txt";
- File.WriteAllText(whereToSave, clipboard);
- }
- }
- }
- public static void CaptureScreenRegion(bool isClip = false)
- {
- Bitmap background = null;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.