How to display the sub-form of another program and click the button inside?

is like this, I want to do an automated software, want to call a button in his sub-form, can not find the idea, for example, notepadPP, how to use other programs to display his Preference interface, and click to modify Language to chinese?

Nov.19,2021
Menu