SendKeys for Python 3.1 on Windows
The latest Python Sendkeys module is for Python 2.6. I can't upgrade it myself as it needs the C module to be recompiled. Does anyone know of a fairly easy alternative way to send keys to a window? Using win32ui.FindWindow() I can find the right window, then make it active with PyCWnd.SetActiveWindow(), so all that's needed is a simple way to send keystrokes to the active window. The purpose is to execute a menu item. The app was written in Delphi, and doesn't have any inter-process interface that I know about. Here is a working module that calls user32.SendInput(). Not perfect, but usable.