Skip to content

Instantly share code, notes, and snippets.

@koduki
Created October 22, 2019 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koduki/05fa206e4f642f78a01261685c6d1a46 to your computer and use it in GitHub Desktop.
Save koduki/05fa206e4f642f78a01261685c6d1a46 to your computer and use it in GitHub Desktop.
ラズパイでXのマウスをコマンドから操作
# click login
DISPLAY=:0 xdotool mousemove -- 1150 25
DISPLAY=:0 xdotool click 1
# login
## user name
DISPLAY=:0 xdotool mousemove -- 1200 320
DISPLAY=:0 xdotool click 1
DISPLAY=:0 xdotool type "User Name"
## password
DISPLAY=:0 xdotool mousemove -- 1000 400
DISPLAY=:0 xdotool click 1
DISPLAY=:0 xdotool type "My Password"
## login
DISPLAY=:0 xdotool mousemove -- 1000 500
DISPLAY=:0 xdotool click 1
# skip password window
pi@raspberrypi:~ $ DISPLAY=:0 xdotool mousemove -- 1050 170
pi@raspberrypi:~ $ DISPLAY=:0 xdotool click 1
# Reload
DISPLAY=:0 xdotool key F5
# play
DISPLAY=:0 xdotool mousemove -- 630 500
DISPLAY=:0 xdotool click 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment