[英]I want to use an exe file programatically
I am using a software named Daisy 2.02 Validator and it is with GUI but i want to access it programatically so that i can control all the validation process through my C# project. 我正在使用一个名为Daisy 2.02 Validator的软件,它带有GUI,但我想以编程方式访问它,以便可以通过我的C#项目控制所有验证过程。 I am unable to find any help about it's libraries, any .net Api or any DOS command for controlling it.
我找不到任何有关它的库的帮助,任何.net Api或任何用于控制它的DOS命令。 Please provide me help.
请给我帮助。
Thanks, Regard, Muhammad Waqas 谢谢Regard Muhammad Waqas
If it's a .NET executable, try and use ILDASM.exe or better still - use Reflector to find out whether it has a public API. 如果它是.NET可执行文件,请尝试并使用ILDASM.exe或更好的方法-使用Reflector来查找它是否具有公共API。 You may then be able to add it as a reference (all you need to do is simply rename the .exe to .dll) to your project or alternatively load it as an assembly and use reflection to use its API.
然后,您可以将其作为引用添加(只需将.exe重命名为.dll)到您的项目中,或者将其作为程序集加载并使用反射来使用其API。
Obviously the first option is much preferred. 显然,第一种选择是更可取的。
If it isn't a .NET executable, you could use scraping, but you would have to profile your app for that first and work out what low level windows messages and controls it responds to. 如果它不是.NET可执行文件,则可以使用抓取功能,但是您必须为此首先配置应用程序,并确定其响应的底层Windows消息和控件。 Bit of a nightmare.
一场噩梦。
最坏的情况可能是发送按键。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.