I’m running an anti-AFK bot written in Python that automates the mouse and keyboard while a game is running locally. The bot works when the game is minimized or closed—I can see it typing and moving the mouse automatically. However, when I open the game and switch to fullscreen, the bot stops automating the mouse and keyboard. The strange part is, I tested the bot and the game last year, and everything worked fine back then. I’ve tried both windowed and fullscreen modes, but the bot loses focus and doesn’t interact with the game anymore.