选择 Windows 自动化脚本语言。 AutoIt 与 Autohotkey

发布于 2024-08-10 10:59:33 字数 933 浏览 7 评论 0原文

我需要选择一种 Windows 自动化脚本语言。您推荐哪一款; AutoItAutoHotkey,还是其他?

我读过“AutoIt / AutoHotkey 比较”。有趣的历史,但不推荐。在 Google 上搜索,AutoHotkey Windows 的点击量约为 312k,而对于 482k AutoIt Windows。在 StackOverflow 上,有 15 个标记为 的问题18

我对你作为程序员的看法感兴趣。您认为哪一款更易于使用、更易于部署、功能更强大?我已经将 AutoHotkey 用于个人用途,所以我最初的偏好是这个。

I need to choose a Windows automation scripting language. Which one do you recommend; AutoIt, AutoHotkey, or an other?

I have read "An AutoIt / AutoHotkey comparison". Interesting history, but without recommendation. Searching Google leaves around 312k hits for AutoHotkey Windows vs 482k for AutoIt Windows. On Stack Overflow there are 15 questions tagged vs 18 .

I am interested in your opinion as programmers. Which one do you think is easier to use, more deployable and more powerful in terms of functionality? I have already used AutoHotkey for personal use, so my initial preference is for this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

牵强ㄟ 2024-08-17 10:59:33
  • 我认为 AutoHotkey 的 GUI 实现像它的许多命令一样更容易使用。
  • AutoHotkey(不再维护)有 3 个分支:
    • AutoHotkey v1.1.*(以前称为 AutoHotkey_L)具有 COM、Unicode 支持、面向对象的语法、数组等。
    • AutoHotkeyCE 适用于 Windows 移动 PDA 和智能手机(未完成,不再维护)。
    • IronAHK,AutoHotkey 的 .NET 版本(未完成,不再维护)。
  • AutoHotkey 包含一个 DLL 文件,您可以从其他编程语言调用该文件(AutoIt 也是如此)。
  • AutoHotkey 是开源的,而 AutoIt 不是。
  • 您必须搜索 AutoHotkey 网站才能将所有工具放在一起。 AutoIt 在将所有内容打包到初始下载方面做得更好。

我投票给 AutoHotkey (AHK)。

  • I think AutoHotkey's GUI implementation is easier to use like many of its commands.
  • AutoHotkey (no longer maintained) has 3 forks :
    • AutoHotkey v1.1.* (previously known as AutoHotkey_L) has COM, Unicode support, object-oriented -like syntax, arrays, and more.
    • AutoHotkeyCE works on Windows mobile PDA's and smartphones (unfinished, no longer maintained).
    • IronAHK, a .NET version of AutoHotkey (unfinished, no longer maintained).
  • AutoHotkey includes a DLL file that you can call from other programming languages (so does AutoIt).
  • AutoHotkey is open source, AutoIt is not.
  • You have to search the AutoHotkey site to put all tools together. AutoIt does better at packaging all in its initial download.

My vote is for AutoHotkey (AHK).

颜漓半夏 2024-08-17 10:59:33

两者我都用过很多次。

AutoHotKey 非常擅长管理热键和基本 GUI 自动化。它的语法很糟糕,并且不适合更大的应用程序。

AutoIt 几乎具有 AutoHotKey 所具有的所有功能,甚至更多。 COM 自动化支持、数组和一个非常好的 UDF(用户定义函数)库。在 AutoIt 中构建复杂的热键更加困难。

I've used both very much.

AutoHotKey is very good at managing hotkeys and basic GUI automation. It's syntax is horrible and it's not meant for bigger applications.

AutoIt has almost every feature AutoHotKey has and much more. COM-automation support, arrays and a pretty nice UDF (User Defined Functions) library. It's harder to build complex hotkeys in AutoIt.

养猫人 2024-08-17 10:59:33

AutoIt 是一个强大的工具,其诱人的易用性和庞大的 UDF 库,再加上无与伦比的帮助文件,是难以与之相比的。

我尝试过 AutoHotkey,但它笨拙的感觉和破旧的语法让我望而却步。当您可以亲自为公主提供美酒佳肴时,为什么要满足于丑陋的妹妹呢?自动100%。

AutoIt is a tremendous tool and its seductive ease of use and immense library of UDFs, coupled with an unbeatable help file, is hard to compare to.

I tried AutoHotkey, but its clunky feel and shabby syntax turned me off. Why settle for the ugly sister when you can wine and dine the princess herself. AutoIt 100%.

青衫负雪 2024-08-17 10:59:33

我根据情况使用两者。 AutoHotkey 非常适合快速击键宏,并且 AutoIt 具有更广泛的自动化功能,并且用户定义的函数 (UDF) 允许进行一系列有用的操作,例如 XML 和数据库交互。当自动化需要大量 GUI 交互时,我会使用 AutoIt。

I use both depending on the situation. AutoHotkey is nice for quick keystroke macros and AutoIt has a much broader range of automation functionality and user-defined functions (UDFs) allow a range of useful things such as XML and database interaction. When automation requires a lot of GUI interaction I use AutoIt.

故人的歌 2024-08-17 10:59:33

我在创建 AutoHotkey 之前使用了 AutoIt(当时它具有从 BAT 文件继承的语法)。我对当前的 AutoIt 没有足够的经验来进行正确的比较。它有一个相当规则的语法,而 AutoHotkey 的语法(虽然比原来的风格有了很大的改进)看起来很奇怪。以前从未编码过的人实际上很喜欢这种语法!

我犹豫了一下,看了很多比较,最后还是选择了 AutoHotkey,尽管它的语法不同。部分原因是其卓越的热键管理,部分原因是它是开源的。作者很活跃(他停止了,但现在有替代分支)并且愿意接受建议。我展示了使用 PCRE DLL 的正则表达式支持原型。他整合了这些概念并超越了它们(例如,窗口名称检测中的正则表达式支持)。

文档非常好、详细、充满示例和综合索引。社区非常活跃且乐于助人。该二进制文件非常紧凑,您可以使用脚本创建独立的 EXE 文件。它还具有 GUI 支持(适用于快速简单的对话框窗口)。

我不会说哪个更好,选择主要取决于品味、感觉和需求。

I used AutoIt before AutoHotkey was created (when it had a syntax inherited from BAT files). I don't have enough experience with current AutoIt to make a correct comparison. It has a quite regular syntax, while AutoHotkey's syntax (although greatly improved from the original style) seems odd. People having never coded before actually love this syntax!

I hesitated, read numerous comparisons, and finally chose AutoHotkey despite its syntax. Partly because of its superior hotkey management, partly because it was open source. The author was active (he stopped, but there are alternative branches now) and open to suggestions. I shown a prototype of regular expression support using a PCRE DLL. He integrated the concepts and pushed them beyond (regular expression support in window name detection for example).

Documentation is excellent, detailed and full of examples with a comprehensive index. The community is very active and helpful. The binary is compact and you can make a standalone EXE file with your scripts. It also has GUI support (good for quick simple dialog windows).

I won't say one is better, the choice is mostly a matter of taste, feeling and needs.

攒一口袋星星 2024-08-17 10:59:33

我与 AutoHotkey 一起工作,并认为该语言很难。我想这要么是后天养成的品味,要么是有些人对它有兴趣。我是 Perfect Keyboard 的长期用户,但现在是 AutoIt 的忠实粉丝。

虽然它是类似Basic的,但我仍然可以编写类似“C”的程序,这对我来说是最舒服的。
还有 AutoIt 库,真是省时啊。例如,IE 的库有很多很棒且有用的功能。
良好的 IDE 和活跃的用户社区。

我投的是 AutoIt。

I worked with AutoHotkey and thought the language was difficult. I suppose it is either an acquired taste or some people have affinity for it. I was a long-time Perfect Keyboard user but am now a huge fan of AutoIt.

Though it is Basic-like I can still write "C" -like programs which is most comfortable for me.
And the libraries for AutoIt, what a time saver. For example, the library for IE has a lot of great and useful functions.
Good IDE and active user community.

My vote is with AutoIt.

迷爱 2024-08-17 10:59:33

我对 AutoIt 非常满意。该语言是 Basic 的简单风格。它们包括很棒的帮助文件、脚本编译器、不仅理解语法而且支持 F1 获取帮助的编辑器等。它们有大量的代码示例。

我没有任何使用 AutoHotKey 的第一手经验 - 我确实记得考虑过它,但自从使用 AutoIt 以来我从未回头。

I have been extremely happy with AutoIt. The language is an easy flavor of Basic. They include great help files, a script compiler, an editor that understands not only the syntax but supports F1 for help, etc. They have plenty of code samples.

I don't have any first hand experience with AutoHotKey - I do remember considering it, but I've never looked back since using AutoIt.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文