Esempio n. 1
0
        // WEB页面加载完成
        private void OnDocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            string curUrl = webBrowser1.Document.Url.ToString();

            Console.WriteLine(curUrl);
            Debugger.Log(0, null, curUrl);

            {
                if (IsOnline())
                {
                    string curURL = webBrowser1.Document.Url.ToString();

                    if (curURL == "https://www.alimama.com/index.htm")
                    {
                        Console.WriteLine("登录成功");
                        Debugger.Log(0, null, "登录成功");
                        Console.WriteLine("Keep Alive at " + DateTime.Now.ToString());
                        Debugger.Log(0, null, "Keep Alive at " + DateTime.Now.ToString());
                        KeepLiveTimer.Start();
                    }
                }
            }
        }
Esempio n. 2
0
 private void KeepAliveBtn_Click(object sender, EventArgs e)
 {
     Console.WriteLine("Keep Alive at " + DateTime.Now.ToString());
     KeepLiveTimer.Start();
 }