Score:-2

Xdotool - key pressing at intervals

je flag

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

TheRandomGuyNamedJoe12 avatar
de flag
Add you answer as an answer instead of editing your question.
Score:0
cn flag

A search for "bash continuous loop" will quickly learn you how to have a loop that runs forever. Them you include the sleep 2000 command in the loop before the xdotool key F6 command.

Such loop will run forever, so have the 20 minutes pauze, then simulate hitting F6. To get out of the loop, press Ctrl+C in the terminal where you started the command.

Lucjan Barasiński avatar
je flag
Thank you and 20 minutes is sleep 1200
Lucjan Barasiński avatar
je flag
Have this command a limit ? because I havent spotted.
Lucjan Barasiński avatar
je flag
I mean xdotool key F6 command
I sit in a Tesla and translated this thread with Ai:

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.