{"id":156,"date":"2009-02-20T11:18:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=156"},"modified":"2009-02-20T11:18:00","modified_gmt":"1970-01-01T00:00:00","slug":"webbrowser-kullanarak-bir-web-sayfasindaki-linkleri-bulma-ve-otomatik-olarak-tiklama","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2009\/02\/20\/webbrowser-kullanarak-bir-web-sayfasindaki-linkleri-bulma-ve-otomatik-olarak-tiklama\/","title":{"rendered":"WebBrowser Kullanarak Bir Web Sayfasindaki Linkleri Bulma ve Otomatik Olarak Tiklama"},"content":{"rendered":"<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Bir Web Sayfasindaki Linkleri Bulma ve Otomatik Olarak Tiklama<\/span><\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Merhaba &ccedil;ogumuz bir Windows uygulamasinda web sayfalarini a&ccedil;ip, sayfa i&ccedil;erisindeki linkleri otomatik olarak tiklama ile ilgilenmisizdir. Otomatik tiklama islemini; reklam tiklama basina para veren (bux.to,bux3.com v.b) sitelerde hile yapmak i&ccedil;in <\/span><span style=\"font-family: Wingdings;\"><span style=\"\">J<\/span><\/span><span style=\"font-family: Calibri;\"> veya yazmis oldugunuz bir web uygulamasi i&ccedil;erisinde otomatik olarak gezerek gerekli testleri yapacak bir uygulama gelistirmek i&ccedil;in kullanabilirsiniz, burasi size kalmis. Bir web sitesi i&ccedil;inde gezinerek sayfa i&ccedil;erisindeki HTMl kontrolleri bulmak ve bu kontroller &uuml;zerinde islemler yapmak aslinda &ccedil;ok kolay bir istir. Bunu bu kadar kolay hale getiren ise .NET ile gelen WebBrowser kontrol&uuml;d&uuml;r. <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Projeyi <a href=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Sabri\/1_16_LinkClick.rar\">buradan <\/a>indirebilirsiniz.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Bu makalemizde google ana sayfasini a&ccedil;an ve bizim istedigimiz anahtar kelimeyi google da arayan k&uuml;&ccedil;&uuml;k bir uygulama yapacagiz. Bu uygulama bir web sitesindeki kontolleri otomatik olarak nasil y&ouml;netecegimiz g&ouml;sterecek. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Ilk olarak bir Windows Application projesi a&ccedil;alim ve formumuzu asagidaki gibi d&uuml;zenleyelim.<br \/>\n<br \/>\n<\/span><span style=\"font-size: small; font-family: Calibri;\"><br \/>\n<img decoding=\"async\" loading=\"lazy\" height=\"421\" width=\"550\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/IMG\/Sabri\/1_16_resim1.jpg\" \/><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Googlen AnaSayfaya Git butonu ve Google&rsquo;da Ara butonlarinin Click eventi i&ccedil;in asagidaki kodlari yazin.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">private<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: blue;\">void<\/span> Form1_Load(<span style=\"color: blue;\">object<\/span> sender, <span style=\"color: rgb(43, 145, 175);\">EventArgs<\/span> e)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\">{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>webBrowser1.Navigate(<span style=\"color: rgb(163, 21, 21);\">&quot;http:\/\/www.google.com&quot;<\/span>);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\">}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">private<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: blue;\">void<\/span> GitButon_Click(<span style=\"color: blue;\">object<\/span> sender, <span style=\"color: rgb(43, 145, 175);\">EventArgs<\/span> e)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\">{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>webBrowser1.Navigate(<span style=\"color: rgb(163, 21, 21);\">&quot;http:\/\/www.google.com&quot;<\/span>);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\">}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">private<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: blue;\">void<\/span> AraButon_Click(<span style=\"color: blue;\">object<\/span> sender, <span style=\"color: rgb(43, 145, 175);\">EventArgs<\/span> e)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\">{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">foreach<\/span> (<span style=\"color: rgb(43, 145, 175);\">HtmlElement<\/span> el <span style=\"color: blue;\">in<\/span> webBrowser1.Document.All)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">if<\/span> (el.Name == <span style=\"color: rgb(163, 21, 21);\">&quot;q&quot;<\/span>)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>el.InnerText = anahtarKelimeTextBox.Text;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">foreach<\/span> (<span style=\"color: rgb(43, 145, 175);\">HtmlElement<\/span> el <span style=\"color: blue;\">in<\/span> webBrowser1.Document.All)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">if<\/span> (el.Name == <span style=\"color: rgb(163, 21, 21);\">&quot;btnG&quot;<\/span>)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>el.InvokeMember(<span style=\"color: rgb(163, 21, 21);\">&quot;click&quot;<\/span>);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\">}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Projemizi &ccedil;alistirdigimizda otomatik olarak google a&ccedil;ilir. TextBox a anahtar bir kelime yazip Google&rsquo;da Ara butonuna basarsak sonucu g&ouml;rebiliriz.<br \/>\n<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"\"><img decoding=\"async\" loading=\"lazy\" height=\"493\" width=\"555\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/IMG\/Sabri\/1_16_resim2.jpg\" \/><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Merhaba &#231;ogumuz bir Windows uygulamasinda web sayfalarini a&#231;ip, sayfa i&#231;erisindeki linkleri otomatik olarak tiklama ile ilgilenmisizdir. Otomatik tiklama islemini; reklam tiklama basina para veren (bux.to,bux3.com v.b) sitelerde hile yapmak i&#231;in \ud83d\ude42 veya yazmis oldugunuz bir web uygulamasi i&#231;erisinde<\/p>\n","protected":false},"author":517,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[417],"tags":[4344,4430,6089,5684,5173,5741,6051,5096],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/156"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/517"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}