Please tell me how to solve my little problem.
I am writing automation for the android emulator, where I use the win32api libraries to emulate actions in an inactive program window.
And at some point I need to send the mouse scroll to the emulator. For this I use:
lParam = win32api.MAKELONG (500, 500)
win32api.PostMessage (hwnd, win32con.WM_MOUSEWHEEL, win32con.MK_LBUTTON, lParam)
Thus, I scroll down. But, no matter how long I googling and looking for information, I cannot figure out how I can scroll up in the same way.
Hmm, for thoughts to click I use:
def Click (x, y):
lParam = win32api.MAKELONG (x, y)
win32api.PostMessage (hwnd, win32con.WM_MOUSEMOVE, lParam)
win32api.PostMessage (hwnd, win32con.WM_LBUTTONDOWN, win32con.MK_LBUTTON, lParam)
win32api.PostMessage (hwnd, win32con.WM_LBUTTONUP, win32con.MKF_LEFTBUTTONSEL, lParam)
Otherwise, I could not make a click.