bash - xdotool 记录器

标签 bash user-interface automation xdotool

<分区>

有人知道自动 xdotool 脚本生成器吗?理想情况下,我想在我的桌面上记录一系列操作,并自动为我制作一个 xdotool 脚本,而不是手动添加暂停和计算像素等。

最佳答案

如果不了解您想要做什么,我不能肯定地说,但我认为您可能想改用 xmacro。这里有一个很好的教程: http://linuxpoison.blogspot.in/2012/03/record-play-keystrokes-and-mouse.html

总结如下:

# Start recording macro.
xmacrorec2 > macro.txt
# Select a keystroke to end the macro.
# Do stuff.
# End the macro with the previously chosen keystroke.

并运行宏:

xmacroplay $DISPLAY < macro.txt

博文指出没有记录计时信息。

关于bash - xdotool 记录器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14133947/

相关文章:

windows - 将所有批处理文件参数转发给内部命令

bash - 如何从wget获取真实文件名

python - 使用 Screen 和 Bash 进行多处理

java - java CLASSPATH 环境变量上的 Jar 被忽略

java - 将 GUI 与 Java 中的逻辑分离

c# - Windows 窗体和 C# 中控件的动态自上而下列表?

C# AutomationElement - 获取包括隐藏在内的所有托盘图标 (Windows 10)

java - 页面对象模式设计

python - 在 python 脚本中调用 bash 函数

Java 2d 游戏-游戏中非常奇怪的 "bug"