I'm trying to make an autoclicker (for a farm) in a video-game (Minecraft if you want to know) that works even if the window is in the back. I disabled the game auto-pause upon losing window focus successfuly and then tried to use
xdotool click --repeat 100000000000 --delay 1000 1 --window $(xdotool search --name --onlyvisible Minecraft)
or simply
xdotool click --repeat 100000000000 --delay 1000 1 --window WINDOW_ID
where WINDOW_ID
is the ID of the game window that I manually fetched. But both commands completely ignore the --window
option and act as
xdotool click --repeat 100000000000 --delay 1000 1
i.e. it clicks where the mouse is currently pointing.
Am I doing something wrong or is there some technical limitation that I'm not aware of?
Asked by maximumevil
(1 rep)
Mar 16, 2021, 12:16 PM
Last activity: Feb 9, 2025, 08:57 PM
Last activity: Feb 9, 2025, 08:57 PM