Ejemplo n.º 1
0
 private void ShowLog(string strInfo)
 {
     //添加至日志显示列表
     listBoxInfo.Items.Add(strInfo);
     if (strInfo.IndexOf("商品有货了") == 0)
     {
         clsMCI cm = new clsMCI();
         cm.FileName = "Notice.mp3";
         cm.play();
     }
     //写日志
        // WriteLog(strInfo);
 }
Ejemplo n.º 2
0
        //sohu reg
        private void button2_Click(object sender, EventArgs e)
        {
            clsMCI cm = new clsMCI();
            cm.FileName = "Notice.mp3";
            cm.play();
            return;
            _GoodsFreshStr goodInfo = null;
            DataContrl.GetDataCache("*****@*****.**", ref goodInfo);
            goodInfo.strFreshStatus = "下单成功";
            ShowStatusInfo(goodInfo);

            DataContrl.GetDataCache("[email protected]", ref goodInfo);
            goodInfo.strFreshStatus = "失败";
            ShowStatusInfo(goodInfo);

            DataContrl.GetDataCache("[email protected]", ref goodInfo);
            goodInfo.strFreshStatus = "登录中...";
            ShowStatusInfo(goodInfo);

            return;
            string strShow = string.Format("{0}", DateTime.Now.ToFileTime());
            MessageBox.Show(strShow);
            return;
            //GetImageEx
            GoodsFresh objFreshEx = new GoodsFresh();
            ClassHttpPost webPost = new ClassHttpPost();
            objFreshEx.SetWebPost(webPost);
            string strRet = webPost.GetHttpPage("https://session.trionworlds.com/login?service=unspecified&locale=zh_CN",
                    "gb2312", "get","", "",
                    "",
                    "*/*", "");
            string strError = "";

              //  https://session.trionworlds.com/login;jsessionid=F355EBF3FCC45A052024921548FD6D59
            //<form id="fm1" class="clearfix" action="/login;jsessionid=46E8217B16B969395A786F70C63DB4F0" method="post">
            //
            string strUrl = GetKeyString(strRet, "id=\"fm1\" class=\"clearfix\" action=\"", "\"");
            strUrl = "https://session.trionworlds.com" + strUrl;
            string strCode = GetKeyString(strRet, "name=\"lt\" value=\"", "\""); ;
            string strData = string.Format("[email protected]&password=l19b351k&lt={0}&_eventId=submit",
                    strCode
                );
            strRet = webPost.GetHttpPage(strUrl,
                    "gb2312", "POST","", strData,
                    "https://session.trionworlds.com/login?service=unspecified&locale=zh_CN",
                    "*/*", "");
        }