易于使用的Linux的AutoHotkey / AutoIt的替代品 [英] Easy to use AutoHotkey/AutoIT alternatives for Linux

查看:2271
本文介绍了易于使用的Linux的AutoHotkey / AutoIt的替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找适用于Linux的易于使用的GUI自动化/微距平台的建议。结果
如果你熟悉在Windows的AutoHotkey AutoIt的或,那么你确切地知道什么样的,我需要与复杂程度的功能。如果你不熟悉,那么这里就是它是多么容易使用AHK小code片断:

I'm looking for recommendations for an easy-to-use GUI automation/macro platform for Linux.
If you're familiar with AutoHotkey or AutoIT on Windows, then you know exactly the kind of features I need, with the level of complexity. If you aren't familiar, then here's a small code snippet of how easy it is to use AHK:

InputBox, varInput, Please enter some random text...
Run, notepad.exe
WinWaitActive, Untitled - Notepad
SendInput, %varInput%
SendInput, !f{Up}{Enter}{Enter}
WinWaitActive, Save
SendInput, SomeRandomFile{Enter}
MsgBox, Your text`, %varInput% has been saved using notepad!

#n::Run, notepad.exe

现在上面的例子中,虽然有点无意义,是那种功能和简单起见,我正在寻找的演示。这里有一个解释,对于那些谁不说AHK:

Now the above example, although a bit pointless, is a demo of the sort of functionality and simplicity I'm looking for. Here's an explanation for those who don't speak AHK:

---- code的说明开始----

----Start of Explanation of Code ----


  • 询问用户能够输入一些文本,并将其存储在varInput

  • 键运行的notepad.exe

  • 等待,直到存在的窗口,是活动

  • 将varInput的内容为一系列的击键

  • 发送击键进入文件 - >退出

  • 等待,直到保存窗口处于活动状态

  • 将一些击键

  • 显示一个消息框,一些文本和内容的变量

  • Asks user to input some text and stores it in varInput
  • Runs notepad.exe
  • Waits till window exists and is active
  • Sends the contents of varInput as a series of keystrokes
  • Sends keystrokes to go to File -> Exit
  • Waits till the "Save" window is active
  • Sends some more keystrokes
  • Shows a Message Box with some text and the contents of a variable

注册一个热键,WIN + N,这时候pressed执行的notepad.exe

Registers a hotkey, Win+N, which when pressed executes notepad.exe

----说明结束----

----End of Explanation----

所以你可以理解,特征十分明显:有能力的轻松的模拟键盘和鼠标功能,读取输入,处理和显示输出,执行程序,操纵窗口,注册热键等。 。所有正在不需要任何#包括,不必要的括号,类的声明等等,总之做到:简单

So as you can understand, the features are quite obvious: Ability to easily simulate keyboard and mouse functions, read input, process and display output, execute programs, manipulate windows, register hotkeys, etc.. all being done without requiring any #includes, unnecessary brackets, class declarations etc. In short: Simple.

现在我周围的Perl和Python,但它肯定没AHK有点播放。他们是伟大的更先进的东西,但肯定的是,必须有一些工具在那里,方便GUI自动化?

Now I've played around a bit with Perl and Python, but its definitely no AHK. They're great for more advanced stuff, but surely, there has to be some tool out there for easy GUI automation?

PS:我已经尝试运行AHK葡萄酒,但发送的键盘和快捷键不工作

PS: I've already tried running AHK with Wine but sending keystrokes and hotkeys don't work.

推荐答案

我推荐的网站, alternativeto.net 寻找替代方案。

I recommend the site, alternativeto.net to find alternative programs.

它显示的AutoIt 3选择:自动密钥,Sikuli和SilkTest中。 自动密钥似乎胜任工作。

It shows 3 alternatives for autoit: AutoKey, Sikuli and Silktest. AutoKey seems up to the job.

这篇关于易于使用的Linux的AutoHotkey / AutoIt的替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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