xiaoquansb 发表于 2010-10-12 18:20:00

[求助]lisp能否切换输入法

<p>cad执行edit编辑文字时由英文切换到中文,edit命令结束后,输入法会自动切换回英文,</p>
<p>如题,请教一下,lisp能否实现切换输入法,</p>

alin 发表于 2010-10-13 07:47:00

<p><font face="Verdana">;;Written By AIdraft <br/>(defun SendKeys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (keys / ws)<br/>&nbsp; (setq ws (vlax-create-object "WScript.Shell"))<br/>&nbsp; (vlax-invoke-method ws 'sendkeys keys)<br/>&nbsp; (vlax-release-object ws)<br/>&nbsp; (princ)<br/>)</font></p>
<p>&nbsp;</p>
<p>用法:<font face="Verdana">(sendkeys "^ ")</font></p>
<p>&nbsp;</p>
<p>你还要用到反应器</p>

xiaoquansb 发表于 2010-10-13 12:32:00

谢谢版主指点,先研究一下

tfanghui 发表于 2022-9-2 23:47:54

alin 发表于 2010-10-13 07:47
;;Written By AIdraft (defun SendKeys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (keys / ws)&nbsp; (se ...

大神,你这个代码怎么运行,07版的能用吗?

luantang2012 发表于 2024-1-29 15:12:13

alin 发表于 2010-10-13 07:47
;;Written By AIdraft (defun SendKeys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (keys / ws)&nbsp; (se ...

请问大神,反应器要怎样用呀,我用vlr-command-reactor 好像不行耶,

林小林子 发表于 2024-4-26 10:25:33

反应器要怎样用呀
页: [1]
查看完整版本: [求助]lisp能否切换输入法