XBasic3000
XBasic3000

Reputation: 3486

how to scroll embedded chromium in Delphi

Hi is there any way to simulate the Delphi embedded chromium scroll position? or simulate SPACE key to scroll when pressing a TButton.

Upvotes: 0

Views: 922

Answers (1)

Kapytanhook
Kapytanhook

Reputation: 856

What you can do is inject some javascript that will scroll to the bottom

ChromiumComponent.Browser.MainFrame.ExecuteJavaScript(
  'window.scrollTo(0,document.body.scrollHeight);'
);

Works great for one way communication to the page you are on.

Upvotes: 1

Related Questions