- 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/
标题可能说明了一切。 考虑到 ipad 的处理器与 macbook 相比不算什么,我认为 Macbook 应该能够运行模拟器。不过,我对iphone/ipad的开发不太了解,想就此发表一些看法。 例如
我正试着在新的M1芯片MacBook上运行Python3。我尝试通过官方网站(https://www.python.org/downloads/release/python-391/)和BREW安装p
好的,事情是这样的。我的一个客户声称他在使用 Safari 浏览器的 Macbook Pro 上查看网站时看不到社交图标(在屏幕的左侧)。这些图标在我测试过的所有设备上都清晰可见。是否有任何 Macb
☀️今天我们来给新电脑安装上一些开发工具,因为我的MacBook是 intel 版本的,直接安装anaconda即可,如果是m1芯片的版本,可参考下面教程: 链接: MacBook m1 安装anac
我有一台 MacBook,想在上面开始我的 Android 开发。但我担心它的可能性。是否可以在 Mac OS 上进行 Android 开发? 到目前为止,我知道可以通过像 VMWare 这样的虚拟工
我有一个问题,当我想将我的 PHP 代码连接到我的数据库时,这个错误显示在图片中但是当我通过终端连接我的数据库时,这是有效的 https://i.imgur.com/cpIzV9E.png __con
我目前正在本地开发一个网站(否则,我会直接链接到它),并且正在对一些设备进行一些最后的调试。我遇到的问题是,在配备 Retina 显示屏的 Macbook Pro 上,它迫使整个网站的分辨率宽度变小。
我创建了一些使用媒体查询的 CSS: @media (max-width: 1230px) { .under_navi { height: 300px; tex
我打算将我的 MacBook 放在我的楼梯平台/走廊上,以便当楼下的人上来翻查我的卧室/房间时,这样当检测到入侵者时,就会发生一组脚本事件,例如从 10 开始倒计时,然后是非常响亮的音乐,但现有的软件
因为m1芯片是arm版本的架构,以前在mac上的很多软件都是基于intel架构的软件,apple开发了rossta2,可以在m1上运行intel架构的软件,但是性能会有损失 python的3.9版
我想买一台新的 macbook Air M1。我想知道 selenium 测试工具在同一台机器上是否正常工作?如果有人尝试过,请分享您的经验。 最佳答案 selenium docker没有在M1上运行
我在他们的网站上安装了最新版本的 Node,但是我遇到了 png 和段错误等问题,查了一下发现这是版本 16 上的一个常见问题。所以我决定降级到稳定版本(14),这是我一直做不到的。我试过了 npm
关闭。这个问题需要debugging details .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 8 个月前关闭。 Improve this quest
我最近换了一个macbook。我错过了正确的控制键,我的小手指开始疼痛,因此我将我的 Cmd 映射到 Ctrl 单独在 emacs 中,我已经将 Caps 映射到 Ctrl 和 Ctrl 到 Caps
我正在编写一个小型音频处理程序,并且我需要某种方法来从 Macbook 中的麦克风获取音频输入。 缓冲区轮询?通知?我应该注意什么类/框架? 最佳答案 最简单的方法之一是使用音频队列。它相当抽象,有相
第一次得到新的MBP 2016。尝试设置PHP、MySQL 和 Apache。使用命令启动Apache sudo apachectl restart 然后通过安装PHP brew install ph
显示模式设置:全屏.displaywidth =(1440,900,16,0) 当前显示分辨率:1440*900 缩放。 代码: fullscreen.pixelperframe = ((full
在我寻找禁用 Macbook 键盘的解决方案时,我目前正在与 Launchd 作斗争。 首先介绍一些背景知识:我在我的 Macbook Pro 2010 型号上洒了一些水,此后键盘上的某些键不再起作用
我正在 Mac 上构建一个项目。它以 glibtoolize: command not found. 我没有找到安装 glibtool 和 glibtoolize 的任何说明。所有搜索结果都在讨论安装
我在一个有 Canvas 的网站上工作。我在 Canvas 上有一个图像,我想做的是捏缩放图像(网页最终将在触摸屏上显示)。我正在使用 jGestures 来检测捏合事件。但是,我想知道是否有一种方法
我是一名优秀的程序员,十分优秀!