How to simulate a mouse click without interfering with actual mouse in Python
问题 I've made a simple click bot to automatically play an android game on my Windows PC. It currently identifies when certain things change on the screen then moves the mouse and clicks the correct button. Currently I am using the following win32api functions to achieve this: Win32api.SetCursorPos(Position) Win32api.mouse_event(winn32con.MOUSEEVENTF_LEFTDOWN,0,0) Win32api.mouse_event(winn32con.MOUSEEVENTF_LEFTUP,0,0) These work great however when I use the bot it takes over my computer's mouse