Dog flutter forum automatically brushes VIP dog food

Source: Internet
Author: User

Dog flutter forum automatically brushes VIP dog food

Start idle dog food reply too slow to think of oneself want to write a, success always give me haha.

It took me an hour to learn to write slowly, although the code is simple, but it's enough for you.

usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Net;usingSystem.IO;namespacewindowsformsapplication1{ Public Partial classForm1:form { PublicForm1 () {InitializeComponent (); }                Private voidForm1_Load (Objectsender, EventArgs e) {            varRequest = (HttpWebRequest) webrequest.create ("Http://bbs.goupu.org/member.php?mod=logging&action=login");//Create: Creating a WebRequest objectWebBrowser1.Document.Encoding ="UTF-8";//fix Web page garbled//HttpWebResponse Object instance: This class is used to get and manipulate HTTP answer var can be changed to HttpWebResponse            varResponse = (HttpWebResponse) request. GetResponse ();//GetResponse: Get a reply//constructing a Data flow object instanceStream stream = Response. GetResponseStream ();//GetResponseStream: Get the reply streamStreamReader sr =NewStreamReader (stream);//reading characters from the byte stream//reads from the current position of the stream to the end and appears in the Webbrower control            stringContent =Sr.            ReadToEnd (); Webbrowser1.documenttext=content; HtmlElement User= webbrowser1.document.all["username"]; HtmlElement Pass= webbrowser1.document.all["Password"]; HtmlElement but= webbrowser1.document.all["Loginsubmit"]; if(user==NULL|| pass==NULL|| but==NULL)            {                return; } user. SetAttribute ("value","User name"); Pass. SetAttribute ("value","Password"); MessageBox.Show (user.            ToString ()); But. InvokeMember ("Click"); }        Private voidButton1_Click (Objectsender, EventArgs e) {HtmlElement text= webbrowser1.document.all["message"]; Text. SetAttribute ("value","+ 10 bags of dog food"); HtmlElement but= WebBrowser1.Document.GetElementById ("Postsubmit"); But. InvokeMember ("Click"); }        Private voidButton2_Click (Objectsender, EventArgs e) {timer1. Enabled=true; Timer1. Interval= +; Timer1.                Start (); HtmlElement img= WebBrowser1.Document.GetElementById ("Fastpostmessage"); Img. SetAttribute ("value","+ 10 bags of dog food"); HtmlElement BUT1= webbrowser1.document.all["Replysubmit"]; But1. InvokeMember ("Click"); Timer1.        Stop (); }    }}

Dog flutter forum automatically brushes VIP dog food

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.