注册表
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>