开发者

Easy-to-use AutoHotkey/AutoIt alternatives for Linux [closed]

开发者 https://www.devze.com 2022-12-22 23:55 出处:网络
Closed. This question is off-topic. It is not currently accepting answe开发者_开发百科rs. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answe开发者_开发百科rs.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

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 AutoHotkey:

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

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 AutoHotkey:

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

  • 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

  • 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.

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

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


I'd recommend the site alternativeto.net to find alternative programs.

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


IronAHK is being developed as a cross-platform flavor of AutoHotkey which can be used on Linux, but it's not a fleshed out product yet.


Sikuli lets you automate your interface using screenshots. It runs on any Java platform, so it is cross-platform.


You should look at Experitest. I'm using the Windows version, but it's Java-based and I think it supports Linux as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号