以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [讨论]模拟按键  Sendkeys.Send  如何模拟 alt 键?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=533)

--  作者:wcs
--  发布时间:2008/9/16 22:16:00
--  [讨论]模拟按键  Sendkeys.Send  如何模拟 alt 键?
模拟按键  Sendkeys.Send  如何模拟 alt 键?

这样一段代码:

Dim Proc As New Process
Proc
.File = "C:\\Documents and Settings\\okok\\桌面\\新建 文本文档.txt"
Proc
.Start
Proc.WaitForInputIdle()
\'等程序自动结束并进入空闲状态
Sendkeys.Send(
"I Like FoxTable ~ skgis % {down 7} ~ ") \'发送按键信息


执行到 % 的地方没有进行下去。

%是不是ALT的按键代码啊?为什么不执行了?

--  作者:wcs
--  发布时间:2008/9/16 23:46:00
--  

没人回答啊!


--  作者:czy
--  发布时间:2008/9/17 1:09:00
--  
Dim Proc As New Process
Proc.File = "C:\\Documents and Settings\\okok\\桌面\\新建 文本文档.txt"
Proc.Start
Proc.WaitForInputIdle() \'等程序自动结束并进入空闲状态
Sendkeys.Send("I Like FoxTable ~ skgis % {down 5}~~") \'发送按键信息