我正在尝试使用VBA发送一个向下翻页键。
Set Myscreen = Sys.Screen, SYS is set as Set Sys = GetObject("C:\Program Files\Attachmate\E!E2K\Sessions\AS400-A.EDP")
我试过了;
Myscreen.SendKeys "{PGDN}"
Myscreen.SendKeys ("{PGDN}")
Myscreen.SendKeys ("<PGDN>")
Myscreen.SendKeys "{PAGE DOWN}"
Myscreen.SendKeys ("{PAGE DOWN}")
Myscreen.SendKeys ("<PAGE DOWN>")
Myscreen.SendKeys "{PAGE DN}"
Myscreen.SendKeys ("{PAGE DN}")
Myscreen.SendKeys ("<PAGE DN>")
Myscreen.SendKeys "{Down}"
Myscreen.SendKeys ("{Down}")
Myscreen.SendKeys ("<Down>") - this was the only that did anything, it moved the cursor down a line.
我使用Myscreen.Sendkeys ("<DELETE>")
删除了工作。
2条答案
按热度按时间atmip9wb1#
{Page Down}的正确Syntax应为
请看MSDN和SendKeys Class
编辑
好的,我已经测试过了,它能用
4urapxun2#
这是正确的语法
Myscreen.SendKeys ("<rollup>")