注册表

shurufa-Handinput.reg

 

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Handinput]
@="URL:Handinput Protocol Handler"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\Handinput\DefaultIcon]
@="C:\\Program Files (x86)\\SogouInput\\Components\\HandInput\\1.1.0.2082\\handinput.exe"
[HKEY_CLASSES_ROOT\Handinput\shell]
[HKEY_CLASSES_ROOT\Handinput\shell\open]
[HKEY_CLASSES_ROOT\Handinput\shell\open\command]
@="\"C:\\Program Files (x86)\\SogouInput\\Components\\HandInput\\1.1.0.2082\\handinput.exe\" \"%1\""

 

html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <script type="text/javascript"  >
        function loadIme() {
            var e = document.createElement('script');
            e.setAttribute('src', ' http://web.pinyin.sogou.com/web_ime/init.js');
            document.body.appendChild(e);
        }
    function sogo() //打开手写输入法
        {
            window.location.href="Handinput://test"
        }
function close() //关闭手写输入法

        { 
           let cmd=new ActiveXObject("WScript.Shell");
           cmd.run("taskkill /f /t /im handinput.exe",0);
        }

    </script>
    <style type="text/css">
        #TextArea1
        {
            height: 199px;
            width: 239px;
        }
    </style>
</head>
<body οnlοad="loadIme()" >
    <textarea id="TextArea1">fdsfsd</textarea>
    <input type="button" value="关闭搜狗输入法" οnclick="loadIme();this.value= this.value =='关闭搜狗输入法'?'开启搜狗输入法':'关闭搜狗输入法';" />
    <input type="text" id="msg" οnfοcus="sogo()" />
<a href="handinput://">dakai</a>
    <input type="button" value="Send" οnclick="close()"  />
</body>
</html>
html

 

posted @ 2025-01-02 13:32 bxzjzg 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 常用语句 修改数据库视图存储过程权限: grant all privileges on *.* to ''@"%" identified by "root";flush privileges; grant all privileges on *.* to root@"%" identified by 阅读全文
posted @ 2024-12-24 09:42 bxzjzg 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 转换协议字节 /// <summary> /// 转换协议字节帮助类 /// </summary> public class ByteUtil { /// <summary> /// byte数组转换int /// </summary> /// <param name="src"></param> 阅读全文
posted @ 2024-06-14 10:13 bxzjzg 阅读(5) 评论(0) 推荐(0) 编辑
摘要: C# HTTP请求 get post public class HttpRequestHelper { public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain cha 阅读全文
posted @ 2024-05-31 16:44 bxzjzg 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 程序转成Windows服务 var options = new WebApplicationOptions{ Args = args, ContentRootPath = WindowsServiceHelpers.IsWindowsService() ? AppContext.BaseDirect 阅读全文
posted @ 2024-05-08 14:27 bxzjzg 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 分布式锁代码 #region 秒杀业务测试 private static readonly string redisConnectionStr = "127.0.0.1:6379,connectTimeout=5000,allowAdmin=false,defaultDatabase=1"; /// 阅读全文
posted @ 2023-12-15 16:43 bxzjzg 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 场景:在做播放设备的时候需要控制音量的大小,下面几种方法将满足你的要求 方法一: 改变系统音量设置,每次2个音量 [DllImport("user32.dll")] static extern void keybd_event(byte bVk, byte bScan, UInt32 dwFlags 阅读全文
posted @ 2023-11-24 17:38 bxzjzg 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 一、什么是设计模式 设计模式(Design pattern) 是解决软件开发某些特定问题而提出的一些解决方案也可以理解成解决问题的一些思路。通过设计模式可以帮助我们增强代码的可重用性、可扩充性、 可维护性、灵活性好。我们使用设计模式最终的目的是实现代码的高内聚和低耦合。 二、设计模式的三大分类及关键 阅读全文
posted @ 2023-11-06 15:16 bxzjzg 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 问题: //web rtc 调用摄像头(兼容性写法(谷歌、火狐、ie)) navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || n 阅读全文
posted @ 2023-08-15 13:37 bxzjzg 阅读(1917) 评论(0) 推荐(0) 编辑
摘要: windows 批处理文件bat中当前目录 方法1:命令 %cd% 或者 !cd! ,取得是运行的环境目录 方法2:命令 %~dp0 ,取得了bat的文件所在目录 @ECHO OFF会关闭注释输出;@ECHO ON则打开注释输出。 建议尽量使用下面两种符号来为.bat批处理文件添加注释: (1):: 阅读全文
posted @ 2023-08-07 15:33 bxzjzg 阅读(1065) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示