有人知道如何模拟Visual Basic中的选项卡和向下箭头按钮吗?我在VB中使用Internet Explorer对象
答案 0 :(得分:0)
Sendkeys发挥了作用
Dim numberoftabs as Long
Dim numberofdownarrows1 as long
numberoftabs = yourvalue
numberofdownarrows1 = yourvalue
Application.SendKeys "{TAB " & numberoftabs & "}", True
Application.SendKeys "{DOWN " & numberofdownarrows1 & "}", True
Application.SendKeys "~", True