Answer the question
In order to leave comments, you need to log in
How to bind the keyboard autoclicker to a window in the background?
wrote a clicker mini-code, works in the browser and the system as a whole, but does not want to see it in DotA. I would like to bind to the Dota2 window, even if it is in the background.
upd. Initially, I just wanted to click through Clickerman, but when binding to a window, the functionality simply disappears. Without anchoring, it clicks into the window, but when anchored, it does not work either in the background or when the window is active.
import keyboard
import pyautogui as auto
import pyglet
import time
def s():
while not keyboard.is_pressed('shift'):
time.sleep(0.1)
keyboard.send ("Q")
keyboard.add_hotkey('ctrl + alt', s)
input()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question