SHARE
TWEET

ImageDeCap Upload!

a guest Nov 16th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. d += UploadPastebinCompleted;
  2.                     bw.RunWorkerAsync(clipboard);
  3.                 }
  4.  
  5.                 if (Preferences.uploadToFTP)
  6.                 {
  7.                     BackgroundWorker bw2 = new BackgroundWorker();
  8.                     bw2.DoWork += Uploading.UploadToFTP;
  9.                     string name = DateTime.UtcNow.ToString("yyyyMMddHHmmssfff");
  10.                     bw2.RunWorkerAsync(new object[] { Preferences.FTPurl,
  11.                                                   Preferences.FTPusername,
  12.                                                   Preferences.FTPpassword,
  13.                                                   Encoding.ASCII.GetBytes(clipboard),
  14.                                                   $"{name}.txt" });
  15.                 }
  16.  
  17.                 if (Preferences.SaveImages && Directory.Exists(Preferences.SaveImagesLocation))
  18.                 {
  19.                     string name = DateTime.UtcNow.ToString("yyyyMMddHHmmssfff");
  20.                     string whereToSave = $"{Preferences.SaveImagesLocation}\\{name}.txt";
  21.                     File.WriteAllText(whereToSave, clipboard);
  22.                 }
  23.             }
  24.         }
  25.  
  26.         public static void CaptureScreenRegion(bool isClip = false)
  27.         {
  28.             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. OK, I Understand
 
Top