<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>xdotool on Christian Knedel</title>
    <link>https://www.christian-knedel.de/zh/tags/xdotool/</link>
    <description>Recent content in xdotool on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sun, 04 Apr 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/zh/tags/xdotool/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>小故事：用xDoTools和xClip进行桌面控制</title>
      <link>https://www.christian-knedel.de/zh/post/2021/april/20210404-xdotools-xclip/</link>
      <pubDate>Sun, 04 Apr 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2021/april/20210404-xdotools-xclip/</guid>
      <description>在本教程中，我展示了如何通过Bash控制Linux&amp;ndash;桌面。Bash机器人需要以下软件包。 x  &amp;ndash;  +   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 &amp;quot;ctrl+t&amp;quot; ## neuen Reiter öffnen xdotool key &amp;quot;ctrl+l&amp;quot; ## Fokussieren der Adressleiste xdotool type --delay 100 &amp;quot;ubuntuusers.</description>
    </item>
    
  </channel>
</rss>
