
위치복원시 왜 xdotool
클릭이 안되나요?
xdotool mousemove --sync 4000 1000 click 1 mousemove restore
다음과 같이 위치를 복원하지 않으면 작동합니다.
xdotool mousemove --sync 4000 1000 click 1
편집 1: 내가 시도한 것
eval "$(xdotool getmouselocation --shell)"
xdotool mousemove --sync 4000 1000
xdotool click 1
xdotool mousemove --screen $SCREEN $X $Y
놀랍게도 딸깍 소리도 나지 않았습니다.
답변1
애플리케이션이 버튼 이벤트를 수락하기 전에 포커스를 받을 때까지 기다려야 할 수도 있습니다. 가능하다면 windowactivate
창에 먼저 초점을 주는 데 사용하고, 그렇지 않으면 sleep .2
마우스 이동 후 클릭하기 전에 잠시 수행합니다.