8420.html

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

HTML
23
字号
<html>
  <head>
    <title>Re: 如何送一字串至某一视窗</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 如何送一字串至某一视窗</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:cww5@mail.ncku.edu.tw">cww</a> on December 18, 1998 at 16:47:47:<p>
In Reply to: <a href="8411.html">Re: 如何送一字串至某一视窗</a> posted by chjichin on December 18, 1998 at 11:51:11:<p>
chjichin post的程式可能copy错,他copy到是<br>关闭小算盘的程式。<br>要送一字串至某一视窗首先要让该window取得keyboard的<br>Focus(或变Active的Window),而后用SendKeys指令送出<br>字串。但如何让该Window变成Active的Window,有许多种<br>方法,如appactivate指令或用findwindow/enumwindows<br>等等配合 ShowWindow API来让Window变成Active Window<p>或者取得目标Window的hWnd用(Findwindow/enumwindows等等<br>来取得)之后用sendmessage WM_COPYDATA来送出字串亦可<p> <br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 8420-->
</ul><!--end: 8420-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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