Questions tagged [xdotool]

xdotool is a command-line tool to automate GUI tasks such as window manipulation. It can simulate key presses and mouse clicks.

Xdotool is a command line utility that can automate GUI tasks such as focusing and moving windows, switching between desktops, and sending key presses and mouse clicks to windows programmatically.

Official links

179 questions
5
votes
1 answer

save firefox webpage by xdotool

I want to save a firefox webpage using xdotool, and rename the saved file to be test. $ xdotool search "" windowactivate --sync \ key ctrl+s type 'test' --sync key alt+s But the rename isn't current, and may include part…
Tim
  • 25,177
5
votes
2 answers

Can I use xdotool as an auto-clicker?

Is there a way I can use xdotool to perform a certain number of mouse clicks per second while holding down a certain key?
5
votes
1 answer

Does `xdotool key --delay` pause for specified delay between typing every two consecutive keys?

manpage of xdotool says -- delay milliseconds Delay between keystrokes. Default is 12ms. I thought that key string will type each character in the string once, and --delay is for pause between typing two consecutive characters. So why do the…
Tim
  • 25,177
2
votes
0 answers

xdotool does not type for me

xdotool no longer types anything. It worked well a few days ago. for example this command has no outputs (and no errors): xdotool type 'Hello world!' What is the problem? I uninstalled and reinstalled it. But nothing was solved. xdotool…
2
votes
0 answers

xdotool getwindowfocus windowclose

What's the difference between xdotool getwindowfocus windowclose and the command executed by Alt+F4? Firefox complains when being closed by the former method but doesn't complain when using Alt+F4, so there must be a difference but I can't seem to…
dsSTORM
  • 1,860
2
votes
2 answers

xdotool type all in uppercase

I have installed xdotool (version 3.20150503.1) in Ubuntu Server 16.04 "Xenial Xerus" LTS (64bits). When I send the command: xdotool type test The result is: TEST The same with xdotool keydown shift type test, and by manually pressing the SHIFT…
Alberto
  • 161
1
vote
1 answer

xdotool unable to work after the 22.04.1 LTS update

my xdotool stopped working with the 22.04.1 LTS update . . . anyone else facing the same issue ? Here's my command: xdotool key F11 xdotool key alt + Tab and many other command that uses xdotool it worked fine before the update and now all my…
Fixel
  • 13
1
vote
0 answers

Repositioning windows working well, but not gnome-terminal

I have set up a few keyboard shortcuts to reposition windows to the corners of the screen, using xdotool. For example, to move a window top-left I use xdotool getactivewindow windowmove 0 0 Bottom and right are fixed simply by using large numbers.…
1
vote
0 answers

xdotool send mouse move action to background window?

I've been using xdotool click and xdotool key with --window $win1 as argument to control a window that's in the background. How can I perform a click on a specific button in the background window? mousemove doesn't accept the --window argument.
Robert
  • 111
1
vote
1 answer

What are the differences between `key` and `type` commands of xdotool?

The xdotool manpage says: key: Type a given keystroke. type: Types as if you had typed it. It is beyond my understanding. Could you explain how they differ?
Tim
  • 25,177
0
votes
0 answers

How to send a command to a firefox window with a specific url? (xdotool)

I have a particular need, while I write the notes with Evernote on a firefox window, I need to send back the video lesson on another firefox window. The video lessons can be either on youtube or on other sites that use Wistia. I managed, via xdotool…
0
votes
1 answer

xdotool export bad variable name

I have a probably very simple problem, but it's taking a lot of time and I can't seem to find a good solution. I'm using fusuma on my laptop to use gestures on my touchpad and for that I want xdotool to execute some keypresses. When I execute this…
0
votes
1 answer

xdotool How do I automate click to click 30 times each delayed by 30 secs then repeat again hourly?

Here is a code I have tried: while sleep 3600; do xdotool mousemove xxx yyy click --repeat 30 --delay 60000 1; done --clearmodifiers - reset active modifiers (alt, etc) while typing --window WINDOW - specify a window to send click…
0
votes
2 answers

xdotool - segmentation fault (core dumped)

I installed xdotool in Ubuntu. But it says segmentation fault (core dumped) when I inputted command xdotool getmouselocation. How to solve it?
-2
votes
1 answer

Xdotool - key pressing at intervals

I would like the F6 button to be pressed every 20 minutes in the game. I have xdotool but i dont know how to used it. I have Linux Mint. I know now: while sleep 1200; do xdotool key F6 done This is answer