Merhaba,
Google recaptcha'yı resim olarak indirmek istiyorum fakat beceremedim.
Örnek: http://www.google.com/recaptcha/learnmore
C#'da direk iframe kodunu çekip daha sonra resmi kaydetmem mümkünmüdür veya nasıl yapabiliriz.
Yardımcı olabilecek biri varmıdır?
c# google recatpcha 'yı resim olarak çekmek?
6
●691
- 30-11-2012, 10:13:06
private Bitmap CreateScreenshot(Control Control, int x, int y) { Bitmap Screenshot = new Bitmap(1000, 1000); Control.DrawToBitmap(Screenshot, new Rectangle(x, y, Control.Width, Control.Height)); return Screenshot; } private void resimAl() { IHTMLDocument2 doc = (IHTMLDocument2)Wb1.Document.Window.Frames.Item(0).Document.DomDocument; mshtml.IHTMLSelectionObject sobj = doc.selection; mshtml.HTMLBody body = doc.body as mshtml.HTMLBody; sobj.empty(); mshtml.IHTMLControlRange range = body.createControlRange() as mshtml.IHTMLControlRange; int a = Wb1.Document.Window.Frames.Item(0).Document.Images.Count; mshtml.IHTMLControlElement img = (mshtml.IHTMLControlElement)Wb1.Document.Window.Frames.Item(0).Document.GetElementById("captcha_image").DomElement; range.@add(img); range.@select(); range.execCommand("Copy", false, null); Bitmap bimg = new Bitmap(Clipboard.GetImage()); PictureBox1.Image = bimg; }
zamanında yaptıgım bir projeden picturebox1 captcha imajı için, wb1 de webbrowser kodu incelersen anlarsın zaten - 30-11-2012, 15:32:30Kimlik doğrulama veya yönetimden onay bekliyor.C# (Open Source)
Google reCaptcha projesini sizler için Csharp projesi haline getirdik. Açık kaynak bu projeyi keyfinize göre değiştirebilirsiniz.

Proje indirme adres;
http://baymyo.com/Default.aspx?m=Projeler&pno=2 - 30-11-2012, 18:18:01Üyeliği durduruldubeyler yardımlarınız için teşekkür ederim şu an uğraşıyorum,
ilkerxx senin yaptığın kodu entegre etmeye calıştım fakat şu hatayı alıyorum.
Hatayı aldığım yer koyu renkli item ler
IHTMLDocument2 doc = (IHTMLDocument2)Wb1.Document.Window.Frames.Item(0).Document.DomDocument;

Uygulama Dosyası İndir - 01-12-2012, 22:07:13

Google reCaptcha Sniper projesi uygulamayı indirmek için aşağıdaki bağlantıyı ziyaret ediniz.
http://www.baymyo.com/Default.aspx?m=Projeler&pno=2

sevgilerimizle..




sevgilerimizle..