So I'm trying to build a bot to automate some actions in a mobile game that I'm running on my pc through Bluestacks.
My program takes a screenshot of the window, looks for certain button templates in the image and returns their coordinates.
I would now like to be able to send a click event to the window at those coordinates, but since I would also like to do other things while the bot runs in the background I'm looking for a way to send the mouse event directly to the window (even if it's minimized/in the background), without influencing the movement of the mouse while I'm doing other stuff or bringing the window to the foreground/unminimizing it. Is this possible?
If you really want to automate bluestacks, you could use adb (which could do the assigned work like clicking a button, even when the window is minimized) you could use
Ppadb (pure Python adb module) for automating it. And ppadb could be used in mac and Linux also, but win32 is restricted to Windows.
Is there a way to send a click event to a window in the background in python?