Fork me on GitHub

Organizations

@github @rss
1 results for xclip
  • 难度等级: 可能需要更长的时间
    在本教程中,我展示了如何通过Bash控制Linux–桌面。Bash机器人需要以下软件包。 x – + Terminal $ apt-get install xdotool xclip 之后,你可以使用所有的xdotool命令,比如说。 #!/bin/bash #mouse bewegen xdotool mousemove 100 200 #Mouse - Koordinaten erfassen xdotool getmouselocation #Mouse-klick xdotool click 1 Mouse-Klick auf Koordinaten xdotool mousemove 100 200 click 1 #usw... 在下面的例子中,Firefox窗口被搜索到,一个新的标签被打开,上面是Ubuntu的地址。 WID=$(xdotool search firefox | head -n1) ## Window-ID von Firefox ermitteln xdotool windowactivate $WID xdotool key "ctrl+t" ## neuen Reiter öffnen xdotool key "ctrl+l" ## Fokussieren der Adressleiste xdotool type --delay 100 "ubuntuusers.
    bash linux robot roboter linux Created Sun, 04 Apr 2021 00:00:00 +0000