تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

xdotool-control

بواسطة jeremysommerfeld8910-cpu

Browser & Automation
430التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Mouse and keyboard automation using xdotool.

الوصف

ما الذي تفعله هذه المهارة

Mouse, keyboard, and window automation for Linux desktops using xdotool. Covers clicking at screen coordinates, typing into GUI apps, switching browser tabs, and running screenshot-verify-click loops. Works when browser CDP is unavailable.

Handles desktop UI automation directly on Linux without requiring a browser debugging protocol or remote relay.

متى تستخدمها

  • Clicking Chrome extension icons by name
  • Typing commands into a terminal window
  • Switching browser tabs without a relay
  • Automating desktop GUI interactions via coordinate clicks
  • Running screenshot loops to verify and click UI elements

مثال على سير العمل

الإدخال

User asks: click the OpenClaw extension icon in Chrome

الوكيل
  1. 1

    Run xdotool getdisplaygeometry to get screen dimensions

  2. 2

    Take a toolbar screenshot with scrot to verify icon positions

  3. 3

    Find and focus the Chrome window with xdotool search and windowactivate --sync

  4. 4

    Wait 0.3s for focus to settle

  5. 5

    Click the extension icon coordinates with xdotool mousemove and click 1

الإخراج

Chrome extension icon clicked at the correct toolbar position

التثبيت

clawhub install jeremysommerfeld8910-cpu/xdotool-control

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط