Skip to content Skip to sidebar Skip to footer

Sendmessage Function

can I make the SendMessage function using python instead of c++? I'm using python for desktop application that connecting to PHP in a web server!

Solution 1:

Install pywin32.

And use it like:

import win32api, win32con

hwnd = ... # obtain it using spy++, etc.

win32api.SendMessage(hwnd, win32con.WM_KEYDOWN, win32con.VK_SHIFT, 0)

Post a Comment for "Sendmessage Function"