ajl*_*ajl 2 vb.net windows executable automation
我的目标是从VB.NET控制应用程序.没有API,我没有源,只有编译的EXE文件.有没有办法找到打开的应用程序,在应用程序中找到一个按钮,单击一个按钮,并知道它被单击?有没有办法在应用程序中读取文本框的内容?
是的,对于Windows Vista(或Windows 7,或Windows Server 2003及更高版本),有" UI自动化 "API.
有托管选项; System.Windows.Automation是.NET 3.0附带的一个,作为WPF的一部分...虽然System.Windows.Automation作为WPF的一部分提供,但它不要求目标应用程序使用WPF.
你可以阅读更多:
System.Management.Automation.dll(替代System.Windows.Automation).System.Windows.Automation自动化Paint.NET程序(C#).System.Windows.Automation