unable to simulate a click with win32api in bluestacks 5

117 Views Asked by At

I just tried a normal leftclick function.

def leftClick(x,y):
    win32api.SetCursorPos((x,y))
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
    time.sleep(.1)
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)

Set cursor position works fine. But left down/up doesn't work.

0

There are 0 best solutions below