18419.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>  <head>    <title>我找到了可能的方法了.....用SENDMessage API</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>我找到了可能的方法了.....用SENDMessage API</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:fuminger@cht.com.tw">今晚腹鸣, 不想赴冥</a> on September 04, 1999 at 00:03:19:<p>In Reply to: <a href="18414.html">您误会我的问题了, 是撷取滑鼠所在的Unicode</a> posted by 腹鸣 on September 03, 1999 at 22:13:50:<p>: : <br>: : Private Tex1_MouseMove(...)<br>: :   Msgbox Text1<p>: :   'Pass the text to other procedures<br>: : End sub<br>: 我的问题不是抓字串, 而是mouse在move时所在的(x,y)该点如果正好是在一个字(不管中文或英文)的上面, 该如何把此字撷取下来, 供程式利用<p><br>: 换言之, 有点像是用即时翻译软体, mouse移至任何物件上, 只要是在『字』的上面即予以显现翻译内容--我想应该是透过windows API, 只是CWW的心得笔记上似乎无类似运用........<p>: 无论如何, 谢谢您...我仍在期待及找寻解答  <p>在CWW的心得笔记上有文字BOX的选择文字例子利用了i = SendMessage(hwnd, EM_CHARFROMPOS, 0, lParam)就可以得到我想要的结果, 自己找到了, 也提供各位参考, 如果您想写即时显示tiptext或即时线上中英译的类似效果.....<p><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 18419--></ul><!--end: 18419--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?