Generally speaking the only way to interact with the interface of applications outside of your own is through API calls.