我做了个程序,通过SendKeys给一个对话框中的两个文本框输入数字,在确认,程序如下:
其中,U和V为变量,对于两个数字。......
    U=80
    V=60
    SendKeys U
    SendKeys "{TAB}"
    SendKeys V
    SendKeys "{enter}"
    SendKeys "%IPD~", True
......通过测试,我发现只有
    SendKeys U
    SendKeys "{TAB}"
是有效的。为什么?
我是在做CAD的二次开发。
谢谢先!