Is there a way to read and write data from say a chrome window

  c++, ui-automation, winapi

A)Is there a way to read data off a chrome page ex: getting text off a random site

B) Can I pass data such as strings to the search bar of chrome without using the chrome api

Source: Windows Questions C++