Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send keys to a twebbrowser?

Tags:

delphi

How do I programatically send keys to a TWebBrowser to fill in data fields like Name and address?

like image 957
gultekin Avatar asked Feb 02 '26 14:02

gultekin


1 Answers

If you want to fake input you need to use the SendInput API.

However, that's going to require you to make sure that field in question has the input focus. I suspect you would be better off poking the data in through the DOM (IWebBrowser2.Document).

like image 141
David Heffernan Avatar answered Feb 05 '26 07:02

David Heffernan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!