Screen Scrapping on Button click or key board enter key

We are using legacy application and want to capture data from screen ( desktop application)
Legacy application send data to backend when submit button is clicked
We want to capture the data which is send to backend.

Can you please guide me, which control should I used for capturing click event of button in legacy application

User Events is what you’re looking for.

Check this tutorial:

and the documentation on user events.