WinCE远程键盘工具

        public string API_id = "3333"; //你的ID
        public string API_record = null; 
        public string API_record_format = null; 
        public string API_record_HZ = null;
        public string API_key = "geovindu"; //你的KEY
        public string API_secret_key = "geovindu"; //你的SECRRET_KEY
        public string API_language = null; 
        public string API_access_token = null; 
        public string strJSON = ""; 
        private const string tex = "远去的山河沉寂,恋过的风景如昔." +  
                           "苍何斩落了情迷,生死轻付了别离." +  
                           "捣一脉相思成泥,沐四海悲风无迹." +  
                           "往生海烟波又起,妙华镜风雪共历.";




        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {


        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            API_access_token = getStrAccess(API_key, API_secret_key);
            Guid cid = new Guid();
            Response.Redirect("http://tsn.baidu.com/text2audio?tex=" + tex + "&lan=zh&cuid=" + cid.ToString() + "&ctp=1&tok=" + API_access_token);

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="para_API_key">你的KEY</param>
        /// <param name="para_API_secret_key">你的SECRRET_KEY</param>
        /// <returns></returns>
        public string getStrAccess(string para_API_key, string para_API_secret_key)
        {

            //方法参数说明:             
            //para_API_key:API_key(你的KEY)             
            //para_API_secret_key(你的SECRRET_KEY)             
            //方法返回值说明:             
            //百度认证口令码,access_token             
            string access_html = null;
            string access_token = null;
            string getAccessUrl = "https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials" + "&client_id=" + para_API_key + "&client_secret=" + para_API_secret_key;
            try
            {
                HttpWebRequest getAccessRequest = WebRequest.Create(getAccessUrl) as HttpWebRequest;
                //getAccessRequest.Proxy = null;                 
                getAccessRequest.ContentType = "multipart/form-data";
                getAccessRequest.Accept = "*/*";
                getAccessRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)";
                getAccessRequest.Timeout = 30000;//30秒连接不成功就中断                  
                getAccessRequest.Method = "post";
                HttpWebResponse response = getAccessRequest.GetResponse() as HttpWebResponse;
                using (StreamReader strHttpComback = new StreamReader(response.GetResponseStream(), Encoding.UTF8))
                {
                    access_html = strHttpComback.ReadToEnd();
                }
            }
            catch (WebException ex)
            {
                Response.Write(ex.ToString());
            }

            JObject jo = JObject.Parse(access_html);
            access_token = jo["access_token"].ToString();//得到返回的toke             
            return access_token;
        }

     
WinCE桌面助手》基本完结了长途操作WinCE设备的功力,支持鼠标和键盘。而那个远程键盘工具,除了协理键盘外,还协助远程字符粘贴,挺有想法的一个成效,在某些时候,很有成效。

  程序还未健全。

      CeKeyboard的界面如下图所示。

注:有效符号多或特殊符号的,无法读文章,百度有字数限制。可能要特珠服务须要购置。

     
葡京赌场网址 1

网址DEMO:http://www.dusystem.com/news/show-184.html

     
复制须求拷贝到设备中的字符串,在CE设备端把主旨聚焦到待输入框内,然后点击“Paste
to device”即可。那样,就足以很有益的输入长串的网址或者其余内容。

葡京赌场网址,API请求格局基本讲明

http://yuyin.baidu.com/docs/tts/136

 

语音合成接口帮忙 POST 和 GET二种艺术
规范地址:http://tsn.baidu.com/text2audio

     
CeKeyboard的下载地址:http://files.cnblogs.com/we-hjb/CeKeyboard.rar