尕巴 發表於 2018-12-27 14:31:28

易语言打开与关闭输入法的代码示例

<p><strong>DLL命令表</strong></p>
<div class="jb51code">
<pre class="brush:xhtml;">
.版本 2
.DLL命令 GetKeyboardLayoutList, 整数型, , "GetKeyboardLayoutList"
.参数 nBuff, 整数型
.参数 lplist, 整数型, 数组
.DLL命令 ActivateKeyboardLayout, 整数型, , "ActivateKeyboardLayout"
.参数 HKL, 整数型
.参数 flags, 整数型</pre>
</div>
<p><strong>打开与关闭输入法</strong></p>
<div class="jb51code">
<pre class="brush:xhtml;">
.版本 2
.程序集 窗口程序集1
.程序集变量 键盘布局, , , "2"
.子程序 __启动窗口_创建完毕
GetKeyboardLayoutList (10, 键盘布局)
.子程序 _编辑框_打开输入法_获得焦点
ActivateKeyboardLayout (键盘布局 , 0)
.子程序 _编辑框_关闭输入法_获得焦点
ActivateKeyboardLayout (键盘布局 , 0)</pre>
</div>
<p><strong>运行结果:</strong></p>
<p style="text-align: center"><img id="theimg" src="https://img.jbzj.com/file_images/article/201812/20181227141958239.png?20181127142013" alt="" /></p>
<p><strong>总结</strong></p>
<p>以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对琼殿技术社区的支持。如果你想了解更多相关内容请查看下面相关链接</p>
                           
                            <div class="art_xg">
                              <b>您可能感兴趣的文章:</b><ul><li>易语言非递归算法遍历目录的代码示例</li><li>易语言刷屏工具瞬间99+的代码</li><li>易语言设置窗口透明化的代码</li><li>易语言获取程序已运行时间的代码</li><li>易语言枚举所有子窗口讲解</li><li>易语言调用接口查看QQ各项资料的代码</li><li>易语言制作英雄联盟辅助的源码</li><li>易语言送你999朵玫瑰花源码</li><li>易语言高精度完美延时的源码</li><li>易语言赋值定义多维数组的代码实例</li></ul>
                            </div>

                        </div>
                        <!--endmain-->
頁: [1]
查看完整版本: 易语言打开与关闭输入法的代码示例