The game I'm playing (uses DirectX) has stopped responding to commands sent by my python scripts based on pyautogui (somehow middle mouse clicks are still recognized, but nothing else). I've tried pydirectinput, pywinatuo and other keyboard/mouse emulation libraries, but to no avail. As a final attempt, I'm trying AHK, but the game still won't recognize any input. I'm using a simple test code that sends "b" key on repeat. So far I've tried:
- Sending longer key presses, the interval changed from 30 to 2000 milliseconds.
- Running AHK script as an Administrator (the game also runs as an administrator)
- Compiling the script and renaming it, as well as running it as an administrator.
- Running game in windowed mode
- Setting up a new Windows user, giving it admin privileges and running the script under its name (I hoped the game wouldn't have access to processes started by other users)
- Setting up a VM and running the game in it, while scripts are running outside in the host windows. The VM didn't recognize any input and was very laggy, but I guess if everything else fails, I could try it again.
I'm using Windows 10 x64, and the game is an old RPG, Lineage II. The server is private and allows botting, but nobody from the community cares about helping less experienced users, so if anyone knows ways to bypass this problem, I'm open to suggestions.