Score:0

how to setup XDOTOOL to automate pressing spacebar

us flag

I would like to set up xdotool to auto press spacebar twice every 5 hours for 1000 times.

What is the command I must enter in terminal/command line?

repeat-delay?

Can it be done in a single command to press the spacebar twice (say 5 seconds apart) every 5 hours for 1000 times?

Please help and provide the script so I can copy and paste as I am a newbie!

vanadium avatar
cn flag
Could be with a loop that runs 1000 times, each time having xdotool issue two spaces, then having "sleep" wait for five hours. You can also use `sleep` for a five second pause between xdotool invocations. Search for "bash loop" to learn how to implement a loop.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.