简体   繁体   English

我想以编程方式使用exe文件

[英]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. 一场噩梦。

from what I see Daisy 2.02 Validator is an open source project . 从我看到的 Daisy 2.02 Validator是一个开源项目 if the API is not implemented you can just add it yourself 如果未实现API,则可以自己添加

最坏的情况可能是发送按键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我希望它在单独打开 exe 文件时关闭 - I want it to close when it opens the exe file separately 我想在远程Windows机器上复制并运行.exe文件? - I want to copy and run .exe file on a remote Windows machine? 在其他位置处理另一个文件时,如何以编程方式获取一个exe的路径 - how can i get the path to one exe programatically while working with another file at other location 当我通过 SharpSvn 以编程方式添加文件时,另一个进程正在使用该文件 - The file being use by another process when i add it programatically by SharpSvn 我想创建控件并将其放置在需要的位置 - I want to create controls and position them where I want Programatically 我想在C#asp.net(mvc)中运行exe文件 - I want to run exe file in C# asp.net (mvc) 我想在C#asp.net(mvc)中运行.exe或bat文件 - I want to run .exe or bat file in C# asp.net (mvc) 如何从 C# 中的服务器端脚本打开本地机器 exe 文件? 我不想要 ActiveXObect - How to open local machine exe file from server side script in c#? I Dont want ActiveXObect 我想在远程主机上运行.exe 作为网络服务器 - I want to run .exe as a webserver on a remote host 我想以编程方式在 datagridview 中添加列和 sql 查询 - i want to add columns and sql query in datagridview programatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM