Why does xdotool right click not work with every application?
xdotool click --clearmodifiers 3
works as right-click in firefox
and chromium-browser
, but not in all programs such as Thunar file manager and xfce4-terminal. Why is that?
In terminal, if I run the command by entering it there, context menu appears, but if I run the command by keyboard shortcut (set in Xfce's keyboard settings), it does not work.
Anyway, shift + F10 seems to work (though I have to use Fn key in my Macbook keyboard).
xubuntu touchpad xfce macbook
|
show 2 more comments
xdotool click --clearmodifiers 3
works as right-click in firefox
and chromium-browser
, but not in all programs such as Thunar file manager and xfce4-terminal. Why is that?
In terminal, if I run the command by entering it there, context menu appears, but if I run the command by keyboard shortcut (set in Xfce's keyboard settings), it does not work.
Anyway, shift + F10 seems to work (though I have to use Fn key in my Macbook keyboard).
xubuntu touchpad xfce macbook
What about justxdotool click 3
?
– DK Bose
Jan 13 at 10:20
@DKBose same thing
– jarno
Jan 13 at 10:49
1
+1 can confirm this. Most likely something to do with Xfce keyboard shortcut. I have since given up and just use the default shortcutShift+F10
orcontext menu
key. Elsexdotool
always work in command line.
– clearkimura
Jan 13 at 11:30
I too can confirm this for Xubuntu 18.04. I made a simple script with justxdotool click 3
and assigned a shortcut to it. But the same route works just fine in Lubuntu 18.04 and Kubuntu 18.04 for all applications tested. If it's important to you, I suggest also asking at forum.xfce.org.
– DK Bose
Jan 13 at 12:29
3
Possible duplicate of How to create a shortcut that executes an xdotool command to simulate a key press?
– clearkimura
Jan 13 at 17:02
|
show 2 more comments
xdotool click --clearmodifiers 3
works as right-click in firefox
and chromium-browser
, but not in all programs such as Thunar file manager and xfce4-terminal. Why is that?
In terminal, if I run the command by entering it there, context menu appears, but if I run the command by keyboard shortcut (set in Xfce's keyboard settings), it does not work.
Anyway, shift + F10 seems to work (though I have to use Fn key in my Macbook keyboard).
xubuntu touchpad xfce macbook
xdotool click --clearmodifiers 3
works as right-click in firefox
and chromium-browser
, but not in all programs such as Thunar file manager and xfce4-terminal. Why is that?
In terminal, if I run the command by entering it there, context menu appears, but if I run the command by keyboard shortcut (set in Xfce's keyboard settings), it does not work.
Anyway, shift + F10 seems to work (though I have to use Fn key in my Macbook keyboard).
xubuntu touchpad xfce macbook
xubuntu touchpad xfce macbook
edited Jan 13 at 14:24
jarno
asked Jan 13 at 7:19
jarnojarno
1,74131946
1,74131946
What about justxdotool click 3
?
– DK Bose
Jan 13 at 10:20
@DKBose same thing
– jarno
Jan 13 at 10:49
1
+1 can confirm this. Most likely something to do with Xfce keyboard shortcut. I have since given up and just use the default shortcutShift+F10
orcontext menu
key. Elsexdotool
always work in command line.
– clearkimura
Jan 13 at 11:30
I too can confirm this for Xubuntu 18.04. I made a simple script with justxdotool click 3
and assigned a shortcut to it. But the same route works just fine in Lubuntu 18.04 and Kubuntu 18.04 for all applications tested. If it's important to you, I suggest also asking at forum.xfce.org.
– DK Bose
Jan 13 at 12:29
3
Possible duplicate of How to create a shortcut that executes an xdotool command to simulate a key press?
– clearkimura
Jan 13 at 17:02
|
show 2 more comments
What about justxdotool click 3
?
– DK Bose
Jan 13 at 10:20
@DKBose same thing
– jarno
Jan 13 at 10:49
1
+1 can confirm this. Most likely something to do with Xfce keyboard shortcut. I have since given up and just use the default shortcutShift+F10
orcontext menu
key. Elsexdotool
always work in command line.
– clearkimura
Jan 13 at 11:30
I too can confirm this for Xubuntu 18.04. I made a simple script with justxdotool click 3
and assigned a shortcut to it. But the same route works just fine in Lubuntu 18.04 and Kubuntu 18.04 for all applications tested. If it's important to you, I suggest also asking at forum.xfce.org.
– DK Bose
Jan 13 at 12:29
3
Possible duplicate of How to create a shortcut that executes an xdotool command to simulate a key press?
– clearkimura
Jan 13 at 17:02
What about just
xdotool click 3
?– DK Bose
Jan 13 at 10:20
What about just
xdotool click 3
?– DK Bose
Jan 13 at 10:20
@DKBose same thing
– jarno
Jan 13 at 10:49
@DKBose same thing
– jarno
Jan 13 at 10:49
1
1
+1 can confirm this. Most likely something to do with Xfce keyboard shortcut. I have since given up and just use the default shortcut
Shift+F10
or context menu
key. Else xdotool
always work in command line.– clearkimura
Jan 13 at 11:30
+1 can confirm this. Most likely something to do with Xfce keyboard shortcut. I have since given up and just use the default shortcut
Shift+F10
or context menu
key. Else xdotool
always work in command line.– clearkimura
Jan 13 at 11:30
I too can confirm this for Xubuntu 18.04. I made a simple script with just
xdotool click 3
and assigned a shortcut to it. But the same route works just fine in Lubuntu 18.04 and Kubuntu 18.04 for all applications tested. If it's important to you, I suggest also asking at forum.xfce.org.– DK Bose
Jan 13 at 12:29
I too can confirm this for Xubuntu 18.04. I made a simple script with just
xdotool click 3
and assigned a shortcut to it. But the same route works just fine in Lubuntu 18.04 and Kubuntu 18.04 for all applications tested. If it's important to you, I suggest also asking at forum.xfce.org.– DK Bose
Jan 13 at 12:29
3
3
Possible duplicate of How to create a shortcut that executes an xdotool command to simulate a key press?
– clearkimura
Jan 13 at 17:02
Possible duplicate of How to create a shortcut that executes an xdotool command to simulate a key press?
– clearkimura
Jan 13 at 17:02
|
show 2 more comments
1 Answer
1
active
oldest
votes
xdotool simulates you moving or clicking the mouse, or pressing the keyboard. You trigger the xdotool script with the keyboard, but before you are releasing the key, xdotool already issues the mouse click. For some situations, xdotool may be too fast. The precise reason why it sometimes works, the other time not, is probably only to be found out by experts.
Anyway, try introducing a few ms delay by prepending the xdotool command with a sleep
command, e.g.
sleep 0.2 && xdotool click --clearmodifiers 3
would introduce a 200 ms delay before executing the xdotool command.
In this case xdotool simulates mouse event.
– jarno
Jan 13 at 14:22
I still do not understand why it does not work without the delay with all applications, but anyway the main thing is that I can make it work now.
– jarno
Jan 13 at 14:28
+1 can confirm this. Related: This older answer also suggested a workaround to add delay for making xdotool work properly in Unity/Compiz (cause not known). So not just Xfce issue apparently.
– clearkimura
Jan 13 at 16:53
Understand or not: computers are complex systems. Input may not yet be registered if something else is busy, which is why mouse movements and keystrokes are not coming through if not issued on the right moment. I changed my answer because indeed your question is on mouse input. The principle remains, however.
– vanadium
Jan 13 at 17:23
The command seems to corrupt mouse: Bug
– jarno
Jan 18 at 9:58
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2faskubuntu.com%2fquestions%2f1109302%2fwhy-does-xdotool-right-click-not-work-with-every-application%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
xdotool simulates you moving or clicking the mouse, or pressing the keyboard. You trigger the xdotool script with the keyboard, but before you are releasing the key, xdotool already issues the mouse click. For some situations, xdotool may be too fast. The precise reason why it sometimes works, the other time not, is probably only to be found out by experts.
Anyway, try introducing a few ms delay by prepending the xdotool command with a sleep
command, e.g.
sleep 0.2 && xdotool click --clearmodifiers 3
would introduce a 200 ms delay before executing the xdotool command.
In this case xdotool simulates mouse event.
– jarno
Jan 13 at 14:22
I still do not understand why it does not work without the delay with all applications, but anyway the main thing is that I can make it work now.
– jarno
Jan 13 at 14:28
+1 can confirm this. Related: This older answer also suggested a workaround to add delay for making xdotool work properly in Unity/Compiz (cause not known). So not just Xfce issue apparently.
– clearkimura
Jan 13 at 16:53
Understand or not: computers are complex systems. Input may not yet be registered if something else is busy, which is why mouse movements and keystrokes are not coming through if not issued on the right moment. I changed my answer because indeed your question is on mouse input. The principle remains, however.
– vanadium
Jan 13 at 17:23
The command seems to corrupt mouse: Bug
– jarno
Jan 18 at 9:58
add a comment |
xdotool simulates you moving or clicking the mouse, or pressing the keyboard. You trigger the xdotool script with the keyboard, but before you are releasing the key, xdotool already issues the mouse click. For some situations, xdotool may be too fast. The precise reason why it sometimes works, the other time not, is probably only to be found out by experts.
Anyway, try introducing a few ms delay by prepending the xdotool command with a sleep
command, e.g.
sleep 0.2 && xdotool click --clearmodifiers 3
would introduce a 200 ms delay before executing the xdotool command.
In this case xdotool simulates mouse event.
– jarno
Jan 13 at 14:22
I still do not understand why it does not work without the delay with all applications, but anyway the main thing is that I can make it work now.
– jarno
Jan 13 at 14:28
+1 can confirm this. Related: This older answer also suggested a workaround to add delay for making xdotool work properly in Unity/Compiz (cause not known). So not just Xfce issue apparently.
– clearkimura
Jan 13 at 16:53
Understand or not: computers are complex systems. Input may not yet be registered if something else is busy, which is why mouse movements and keystrokes are not coming through if not issued on the right moment. I changed my answer because indeed your question is on mouse input. The principle remains, however.
– vanadium
Jan 13 at 17:23
The command seems to corrupt mouse: Bug
– jarno
Jan 18 at 9:58
add a comment |
xdotool simulates you moving or clicking the mouse, or pressing the keyboard. You trigger the xdotool script with the keyboard, but before you are releasing the key, xdotool already issues the mouse click. For some situations, xdotool may be too fast. The precise reason why it sometimes works, the other time not, is probably only to be found out by experts.
Anyway, try introducing a few ms delay by prepending the xdotool command with a sleep
command, e.g.
sleep 0.2 && xdotool click --clearmodifiers 3
would introduce a 200 ms delay before executing the xdotool command.
xdotool simulates you moving or clicking the mouse, or pressing the keyboard. You trigger the xdotool script with the keyboard, but before you are releasing the key, xdotool already issues the mouse click. For some situations, xdotool may be too fast. The precise reason why it sometimes works, the other time not, is probably only to be found out by experts.
Anyway, try introducing a few ms delay by prepending the xdotool command with a sleep
command, e.g.
sleep 0.2 && xdotool click --clearmodifiers 3
would introduce a 200 ms delay before executing the xdotool command.
edited Jan 13 at 17:26
answered Jan 13 at 13:33
vanadiumvanadium
5,60611429
5,60611429
In this case xdotool simulates mouse event.
– jarno
Jan 13 at 14:22
I still do not understand why it does not work without the delay with all applications, but anyway the main thing is that I can make it work now.
– jarno
Jan 13 at 14:28
+1 can confirm this. Related: This older answer also suggested a workaround to add delay for making xdotool work properly in Unity/Compiz (cause not known). So not just Xfce issue apparently.
– clearkimura
Jan 13 at 16:53
Understand or not: computers are complex systems. Input may not yet be registered if something else is busy, which is why mouse movements and keystrokes are not coming through if not issued on the right moment. I changed my answer because indeed your question is on mouse input. The principle remains, however.
– vanadium
Jan 13 at 17:23
The command seems to corrupt mouse: Bug
– jarno
Jan 18 at 9:58
add a comment |
In this case xdotool simulates mouse event.
– jarno
Jan 13 at 14:22
I still do not understand why it does not work without the delay with all applications, but anyway the main thing is that I can make it work now.
– jarno
Jan 13 at 14:28
+1 can confirm this. Related: This older answer also suggested a workaround to add delay for making xdotool work properly in Unity/Compiz (cause not known). So not just Xfce issue apparently.
– clearkimura
Jan 13 at 16:53
Understand or not: computers are complex systems. Input may not yet be registered if something else is busy, which is why mouse movements and keystrokes are not coming through if not issued on the right moment. I changed my answer because indeed your question is on mouse input. The principle remains, however.
– vanadium
Jan 13 at 17:23
The command seems to corrupt mouse: Bug
– jarno
Jan 18 at 9:58
In this case xdotool simulates mouse event.
– jarno
Jan 13 at 14:22
In this case xdotool simulates mouse event.
– jarno
Jan 13 at 14:22
I still do not understand why it does not work without the delay with all applications, but anyway the main thing is that I can make it work now.
– jarno
Jan 13 at 14:28
I still do not understand why it does not work without the delay with all applications, but anyway the main thing is that I can make it work now.
– jarno
Jan 13 at 14:28
+1 can confirm this. Related: This older answer also suggested a workaround to add delay for making xdotool work properly in Unity/Compiz (cause not known). So not just Xfce issue apparently.
– clearkimura
Jan 13 at 16:53
+1 can confirm this. Related: This older answer also suggested a workaround to add delay for making xdotool work properly in Unity/Compiz (cause not known). So not just Xfce issue apparently.
– clearkimura
Jan 13 at 16:53
Understand or not: computers are complex systems. Input may not yet be registered if something else is busy, which is why mouse movements and keystrokes are not coming through if not issued on the right moment. I changed my answer because indeed your question is on mouse input. The principle remains, however.
– vanadium
Jan 13 at 17:23
Understand or not: computers are complex systems. Input may not yet be registered if something else is busy, which is why mouse movements and keystrokes are not coming through if not issued on the right moment. I changed my answer because indeed your question is on mouse input. The principle remains, however.
– vanadium
Jan 13 at 17:23
The command seems to corrupt mouse: Bug
– jarno
Jan 18 at 9:58
The command seems to corrupt mouse: Bug
– jarno
Jan 18 at 9:58
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2faskubuntu.com%2fquestions%2f1109302%2fwhy-does-xdotool-right-click-not-work-with-every-application%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
What about just
xdotool click 3
?– DK Bose
Jan 13 at 10:20
@DKBose same thing
– jarno
Jan 13 at 10:49
1
+1 can confirm this. Most likely something to do with Xfce keyboard shortcut. I have since given up and just use the default shortcut
Shift+F10
orcontext menu
key. Elsexdotool
always work in command line.– clearkimura
Jan 13 at 11:30
I too can confirm this for Xubuntu 18.04. I made a simple script with just
xdotool click 3
and assigned a shortcut to it. But the same route works just fine in Lubuntu 18.04 and Kubuntu 18.04 for all applications tested. If it's important to you, I suggest also asking at forum.xfce.org.– DK Bose
Jan 13 at 12:29
3
Possible duplicate of How to create a shortcut that executes an xdotool command to simulate a key press?
– clearkimura
Jan 13 at 17:02