5

xdotool 마운틴 라이온이 설치된 새 맥북 망막에서는 작동하지 않는 것 같습니다. 그것은 XQuartz를 시작하지만 이전처럼 마우스 클릭이나 키보드 입력을 시뮬레이션하지 않습니다. 산 사자 또는 망막 디스플레이와 관련이 있는지 나는 모른다. cliclick (http://www.bluem.net/ko/mac/cliclick/)과 같은 도구가 제대로 작동하는 것처럼 보입니다. 그럼에도 불구하고 나는 Mac과 Linux 모두에서 작동하는 도구를 선호합니다. 누구도 같은 문제가 발생합니까?산 사자와 맥북 망막을 가진 xdotool

사용 :

  • OS X 10.8.1
  • 맥북 프로 레티 나
  • 에게 xdotool 2.20110530.1를 MacPorts를
  • 에서

답변

9

XQuartz 2.7.3 이걸 발견했습니다 하나는 Mac OS X 용이고 xdotool :

와 동일한 작업을 수행합니다.

웹 사이트 URL : 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, <[email protected]> 
Website: www.bluem.net/jump/cliclick/ 
+1

하하 "참고 :이 단어를들을 때 당신은 공항과 주유소 생각한다면"쉘 "또는"터미널 ", 당신은 아마 더 중요한 cliclick, 그리고 필요하지 않습니다 : 당신은 아마 것 그것을 사용할 수조차 없다. " – jasonleonhard

관련 문제