简体   繁体   中英

How to “Tab” and “Down Arrow” in Internet Explorer Using Visual Basic

Does anybody know how to emulate the tab and down arrow buttons in Visual Basic? I am using the Internet Explorer object in VB

Sendkeys did the trick

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM