什么是好,如果有的话,.NET Windows自动化库? [英] What's a good, if any, .NET Windows automation library?

查看:164
本文介绍了什么是好,如果有的话,.NET Windows自动化库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找可以在本地.NET code中使用,就像任何.NET程序集库。图书馆的目的必须是自动的Windows(按下一个按钮,选择一个窗口,发送键,记录和放大器;回放,诸如此类的事情)。

I'm looking for a library that can be used in native .NET code, just like any .NET assembly. The purpose of the library must be to automate Windows (push a button, select a window, send keys, record & playback, that sort of thing).

所以:图书馆应该是本机用于.NET,但自动化本身必须能够针对任何本地或.NET Windows应用程序,它可以接收用户输入

So: the library is supposed to be used natively in .NET, but the automation itself must be able to target any native or .NET Windows application that can receive user input.

到目前为止建议:

  • <一个href="http://stackoverflow.com/questions/2052915/whats-a-good-if-any-net-windows-automation-library/2052978#2052978">benPearce建议AutoIt的。它有一个DLL,这是本机Win32,但不是本地.NET和不能没有使用.NET互操作使用。
  • <一个href="http://stackoverflow.com/questions/2052915/whats-a-good-if-any-net-windows-automation-library/2053153#2053153">Chris达纳韦认为全球鼠标键盘库。这是最接近的,但不是一个自动化库。它只是帮助建立键盘和鼠标钩子。
  • <一个href="http://stackoverflow.com/questions/2052915/whats-a-good-if-any-net-windows-automation-library/2052959#2052959">pm100建议微软的WPF UI自动化。这一个是pretty的好,尽管它如果你开发.NET 2.0中的不可用,它需要的WPF要在系统上安装。它可以,但是,自动化一切从Win32的应用服务在浏览器的HTML。
  • <一个href="http://stackoverflow.com/questions/2052915/whats-a-good-if-any-net-windows-automation-library/2053015#2053015">JasonTrue建议WebAI从ArtOfTest 。这是一个测试框架,主要面向浏览器和Web应用程序。这是不幸的是没有得到很好的适合用于Windows自动化。
  • benPearce suggested AutoIt. It has a DLL, which is native Win32 but not native .NET and cannot be used without use of .NET Interop.
  • Chris Dunaway suggested Global Mouse Keyboard Lib. This came closest, but is not an automation lib. It just helps setting up keyboard and mouse hooks.
  • pm100 suggested Microsoft's WPF UI Automation. This one is pretty good, albeit that it's not available if you develop in .NET 2.0 and it requires the WPF to be installed on the system. It can, however, automate everything from Win32 apps to HTML in a browser.
  • JasonTrue suggested WebAI from ArtOfTest. This is a testing framework mainly geared towards browsers and web applications. It is unfortunately not well suitable for use for Windows automation.

如果没有其他可用的出现,我可能会选择微软的UI自动化和升级需要它仍处于.NET 2.0到.NET 3.5,如果可能的任何项目。但我希望有一个更广泛适用的自动化框架(.NET之前的2.0并不需要得到支持)。

If nothing else appears available, I'll probably choose Microsoft's UI Automation and upgrade any projects that require it that are still in .NET 2.0 to .NET 3.5, if possible. But I hope for a more widely applicable automation framework (.NET prior to 2.0 does not need to be supported).

推荐答案

你看白色框架

这篇关于什么是好,如果有的话,.NET Windows自动化库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆