Пример #1
0
        static void Main(string[] args)
        {
            KeyboardHook kb = new KeyboardHook();
            kb.Hook();

            ImgurUploader upper = new ImgurUploader();
            while (true)
            {
                Image img = ThreadMsgQueue<Image>.Dequeue();
                Uri res = upper.UploadImage(img, ImageFormat.Jpeg);
                System.Windows.Forms.Clipboard.SetText(res.AbsoluteUri);
            }
        }