automation osx-mountain-lion ui-automation retina-display

automation - xdotool con león de montaña y retina macbook



osx-mountain-lion ui-automation (1)

xdotool no parece funcionar con mi nueva retina macbook con Mountain Lion instalado. Lanza XQuartz pero parece que no simula las entradas de ratón o teclado como antes. No sé si está relacionado con el león de montaña o con la pantalla de la retina. Una herramienta como cliclick (http://www.bluem.net/en/mac/cliclick/) parece funcionar y hace el trabajo. Sin embargo, prefiero una herramienta que funcione tanto en Mac como en Linux. ¿Alguien tiene el mismo problema?

Utilizando:

  • OS X 10.8.1
  • MacBook Pro Retina
  • xdotool 2.20110530.1 desde macports
  • XQuartz 2.7.3

Encontré este para Mac OS X que hace el mismo trabajo que xdotool :

URL del sitio web: http://www.bluem.net/es/mac/cliclick/

Funciona con Retina Display y Mountain Lion. Es bastante simple de usar. Aquí el manual:

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, <[email protected]> Website: www.bluem.net/jump/cliclick/