Beispiel #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);
            }
        }
Beispiel #2
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);
            }
        }