Created
October 22, 2019 06:47
-
-
Save koduki/05fa206e4f642f78a01261685c6d1a46 to your computer and use it in GitHub Desktop.
ラズパイでXのマウスをコマンドから操作
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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