0

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!

Mohit Yadav
  • 471
  • 8
  • 17
Bassem Shahin
  • 656
  • 7
  • 13

1 Answers1

0

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)
hallazzang
  • 651
  • 8
  • 18