I am coding a bot for a video game and it needs to look around, however the game is first person so the mouse gets turned into a crosshair that is always center screen, I have used the moveto() function with coordinates and it doesn’t work. I have used pyautogui before and know I am using it right so I think its to do with the mouse always being centered. Any help is appreciated
Hi, I’m the author of PyAutoGUI. If you’re on Windows, a lot of games use DirectX which has a different system for virtual keyboard and mouse input that PyAutoGUI doesn’t support yet. And, honestly, I’ve been meaning to add it for years now. It is on the feature roadmap, and hopefully I can get to it this year. But for now, there’s no workaround unfortunately.
I’m glad to hear that people use PyAutoGUI though! I’ll bump it up on my list of priorities.
2 Likes
Thanks for the reply, ive done a bit of research and can’t find any other python libraries that can simulate mouse movements that use DirectX, do you happen to know any? most of my results just seem to come up saying its extremely difficult to do.