- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
xdotool
似乎不适用于安装了山狮的新Macbook视网膜。它启动XQuartz,但似乎不像以前那样模拟鼠标单击或键盘输入。我不知道它与美洲狮或视网膜显示器有关。诸如cliclick(http://www.bluem.net/en/mac/cliclick/)之类的工具似乎可以正常工作。不过,我更喜欢在Mac和Linux上均可使用的工具。有人遇到同样的问题吗?
使用:
最佳答案
我已经找到了适用于Mac OS X的软件,它的工作与xdotool
相同:
网站网址:http://www.bluem.net/en/mac/cliclick/
它可以与Retina Display和Mountain Lion配合使用。使用起来非常简单。这里的手册:
cliclick ("Command Line Interface Click") is a tool for executing mouse- and keyboard-related actions from the shell/Terminal
USAGE
cliclick [-m <mode>] [-r] command1 [command2] [...]
OPTIONS
-r Restore initial mouse location when finished
-m <mode> The mode can be either “verbose” (cliclick will print a
description of each action to stdout just before it is
performed) or “test” (cliclick will only print the
description, but not perform the action)
COMMANDS
To use cliclick, you pass an arbitrary number of commands as arguments. A command consists of a command identifier (a string that tells cliclick what kind of action to perform) and usually one or more arguments to the command, which are separated from the command identifier by a colon. Example: “c:123,456” is the command for clicking (the “c” is the command identifier for clicking) at the position with x coordinate 123 and y coordinate 456. See below for a list of all commands and the arguments they expect.
LIST OF COMMANDS
m:x,y MOVE the mouse to the point with the given coordinates.
Example: “m:12,34” will move the mouse to the point with
x coordinate 12 and y coordinate 34.
c:x,y Will CLICK at the point with the given coordinates.
Example: “c:12,34” will click at the point with x coordinate
12 and y coordinate 34. Instead of x and y values, you may
also use “.”, which means: the current position.
dc:x,y Will DOUBLE-CLICK at the point with the given coordinates.
Example: “dc:12,34” will double-click at the point with x
coordinate 12 and y coordinate 34. Instead of x and y values,
you may also use “.”, which means: the current position.
tc:x,y Will TRIPLE-CLICK at the point with the given coordinates.
Example: “tc:12,34” will triple-click at the point with x
coordinate 12 and y coordinate 34. Instead of x and y values,
you may also use “.”, which means: the current position.
kd:keys Will trigger a KEY DOWN event for a comma-separated list of
modifier keys (“cmd”, “alt” or “ctrl”).
Example: “kd:cmd,alt” will press the command key and the
option key (and will keep them down until you release them
with another command)
ku:keys Will trigger a KEY UP event for a comma-separated list of
modifier keys (“cmd”, “alt” or “ctrl”).
Example: “ku:cmd,ctrl” will release the command key and the
control key (which will only have an effect if you performed
a “key down” before)
p[:str] Will PRINT the given string. If the string is “.”, the
current MOUSE POSITION is printed. As a convenience, you can skip
the string completely and just write “p” to get the current position.
Example: “p:.” or “p” will print the current mouse position
Example: “p:'Hello world'” will print “Hello world”
w:ms Will wait/pause for the given number of milliseconds.
Example: “w:500” will pause command execution for half a second
Version 2.0, released 08/17/2012
Author: Carsten Blüm, <macapps@bluem.net>
Website: www.bluem.net/jump/cliclick/
关于automation - xdotool与山狮和Macbook视网膜,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12450688/
安装了 Mountain Lion 和 Xcode5。尝试打开最近为 iOS6 开发的项目。现在 xcode 非常慢。有什么想法他现在有什么问题吗? 编辑 它适用于我创建的新项目。只有当我打开旧项目时
我是通过homebrew安装rbenv的,现在不知道为什么path_helper把~/.rbenv/shims放在路径的末尾而不是开头。最重要的是,path_helper 是如何获得这些信息的? 根据
已关闭。这个问题是 off-topic 。目前不接受答案。 想要改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 已关闭10 年前。 Improve th
我已经为此苦苦挣扎了太多时间。我正在尝试安装 OpenNI 2 以使我的 kinect 与 OS X Mountain Lion 上的 Mac 一起工作。 我从 http://www.openni.o
有没有人得到关于如何让 C++11 在 OS X mountain lion 下与 SublimeClang 一起工作的说明。 如果我使用非 C++11 库和代码,它会很高兴,但一旦我尝试使用 std
我在 Mac OSX 10.8.5 上安装了 64 位 R(R 版本 2.15.2 (2012-10-26) --“不给糖就捣蛋”),并安装了来自 Oracle 的 Oracle Instantcli
我正在使用 WWDC 的代码来访问用户的 Facebook 帐户: self.accountStore = [[ACAccountStore alloc] init]; ACAccountType *
$ sudo virtualenv test Password: Sorry, try again. Password: New python executable in test/bin/pytho
OS X 10.8.2。我有一个 webView,我在其中加载 HTML 文档。 (一次一个,响应用户输入。) 我正在使用 WebScriptObjects,以便当用户单击每个 HTML 文档中的菜单
我在我的 OSX 应用程序中发现了一个问题,我认为这是 Mavericks 的错误。 我有以下层次结构: NSView->NSScrollView->NSClipView->NSTableView 当
我已经安装了 Mountain Lion,但无法让 phpunit 工作。 $ pear config-get bin_dir /Users/greg/pear/bin $cd /Users/greg
我正在全新安装 OS X Mountain Lion。我通过以下方式安装了 Rails: sudo gem install rails 一切似乎都安装正确,但是当我键入 rails 命令(rails
我通过 Homebrew 软件安装了 mysql。我运行了 brew 建议的两个命令: unset TMPDIR mysql_install_db --verbose --user=`whoami`
操作系统:苹果操作系统10.8.3 xcode: 4.6.3 w 已安装命令行工具 /usr/local/bin/git ->/usr/local/git/bin/git 有什么解决办法吗? (我能够
我试图从 XQuartz (X11) 终端运行我的程序,当我编译我的可执行文件时,它上面没有星号,它不会运行。它说当我键入名称时找不到该命令。我曾经使用过 Xcode,并且下载了命令行工具。我对 C+
免责声明:全新的 iOS 开发者。对我放轻松。 在 Xcode 4.5 中遇到了一个有趣的情况。我的尺寸检查器看起来像这样: ...而且我根本看不到支柱和 Spring 区域。 真正奇怪的是,当我点击
我的理解是,Mountain Lion 将在默认情况下禁止通过 Gatekeeper 安装非签名应用程序的配置中发布。 我目前分发一个开源应用程序;这是一个业余爱好项目,我不收取任何费用。我是否可以在
我是一名优秀的程序员,十分优秀!