Example #1
0
 private void timer_0_Tick_5(object sender, EventArgs e)
 {
     try
     {
         this.SetVerifyVisible(true);
         this.timer_0.Stop();
         if (!this.bool_0)
         {
             this.method_7();
         }
         this.method_9("正在【打码】!");
         this.ihtmldocument2_0 = (IHTMLDocument2)this.webBrowserLoginAlimama.Document.DomDocument;
         IHTMLControlRange   hTMLControlRange   = (IHTMLControlRange)((HTMLBody)this.ihtmldocument2_0.body).createControlRange();
         IHTMLControlElement hTMLControlElement = (IHTMLControlElement)this.ihtmldocument2_0.all.item("J_StandardCode_m", 0);
         hTMLControlRange.@add(hTMLControlElement);
         hTMLControlRange.execCommand("Copy", false, null);
         Image image = Clipboard.GetImage();
         this.pictureBoxVerify.Image = image;
         this.textBoxVerify.Focus();
         this.image_0 = image;
         (new Thread(new ThreadStart(this.method_8))).Start();
     }
     catch (Exception exception)
     {
         this.method_9(string.Concat("[inputVerifyCode]出错了!", exception.ToString()));
     }
 }