I plan to manually select the target Chrome tab and press the macro button from Excel to use it like an on-screen keyboard.
I would like to operate the Chrome browser using only Sendkeys, a standard feature of Excel VBA. SeleniumVBA is not used.
I checked the behavior of sendkeys when multiple Chrome browser windows and multiple tabs were open. As a result, input was only entered in the last selected tab.
Is it okay to understand that SendKeys only works on the tab that the user last operated on? Please let me know if you have any other knowledge.
`Sub SendK()
’Activate Chrome app
Call AppActivate(“Chrome”)
’Keystroke
SendKeys “ABC”
SendKeys “{Enter}”
End Sub`
2053_sh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.