Why xdotool is not clicking when restoring position?
up vote
2
down vote
favorite
Why xdotool
is not clicking when restoring position?
xdotool mousemove --sync 4000 1000 click 1 mousemove restore
If I don't restore the position, it works, example:
xdotool mousemove --sync 4000 1000 click 1
EDIT1: What I've tried
eval "$(xdotool getmouselocation --shell)"
xdotool mousemove --sync 4000 1000
xdotool click 1
xdotool mousemove --screen $SCREEN $X $Y
To my surprise, it also does not click.
command-line xdotool
add a comment |
up vote
2
down vote
favorite
Why xdotool
is not clicking when restoring position?
xdotool mousemove --sync 4000 1000 click 1 mousemove restore
If I don't restore the position, it works, example:
xdotool mousemove --sync 4000 1000 click 1
EDIT1: What I've tried
eval "$(xdotool getmouselocation --shell)"
xdotool mousemove --sync 4000 1000
xdotool click 1
xdotool mousemove --screen $SCREEN $X $Y
To my surprise, it also does not click.
command-line xdotool
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Why xdotool
is not clicking when restoring position?
xdotool mousemove --sync 4000 1000 click 1 mousemove restore
If I don't restore the position, it works, example:
xdotool mousemove --sync 4000 1000 click 1
EDIT1: What I've tried
eval "$(xdotool getmouselocation --shell)"
xdotool mousemove --sync 4000 1000
xdotool click 1
xdotool mousemove --screen $SCREEN $X $Y
To my surprise, it also does not click.
command-line xdotool
Why xdotool
is not clicking when restoring position?
xdotool mousemove --sync 4000 1000 click 1 mousemove restore
If I don't restore the position, it works, example:
xdotool mousemove --sync 4000 1000 click 1
EDIT1: What I've tried
eval "$(xdotool getmouselocation --shell)"
xdotool mousemove --sync 4000 1000
xdotool click 1
xdotool mousemove --screen $SCREEN $X $Y
To my surprise, it also does not click.
command-line xdotool
command-line xdotool
edited Nov 25 at 15:09
Rui F Ribeiro
38.3k1475126
38.3k1475126
asked Jun 3 '16 at 4:59
Vlastimil
7,4251158132
7,4251158132
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
Your application may need you to wait for it to get focus before it accepts button events. If possible, use windowactivate
to get the window focused first, or if not, do a short sleep .2
say, after the mousemove and before the click.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Your application may need you to wait for it to get focus before it accepts button events. If possible, use windowactivate
to get the window focused first, or if not, do a short sleep .2
say, after the mousemove and before the click.
add a comment |
up vote
3
down vote
accepted
Your application may need you to wait for it to get focus before it accepts button events. If possible, use windowactivate
to get the window focused first, or if not, do a short sleep .2
say, after the mousemove and before the click.
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Your application may need you to wait for it to get focus before it accepts button events. If possible, use windowactivate
to get the window focused first, or if not, do a short sleep .2
say, after the mousemove and before the click.
Your application may need you to wait for it to get focus before it accepts button events. If possible, use windowactivate
to get the window focused first, or if not, do a short sleep .2
say, after the mousemove and before the click.
answered Jun 3 '16 at 6:43
meuh
31.1k11754
31.1k11754
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f287363%2fwhy-xdotool-is-not-clicking-when-restoring-position%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown