Sendkeys without Scripting Host
Mark Hammond
mhammond at skippinet.com.au
Thu Mar 28 22:04:41 EST 2002
Harald Schneider wrote:
> Hi,
>
> is there a possibility to use sendkeys() without scripting host installed?
> Are there any
> extentions available for python?
Later versions of win32api have win32api.keybd_event()
The documentation for this is pretty sparse:
keybd_event(bVk, bScan, dwFlags, dwExtraInfo)
Simulate a keyboard event
Parameters
bVk : BYTE
Virtual-key code
bScan : BYTE
Hardware scan code
dwFlags=0 : DWORD
Flags specifying various function options
dwExtraInfo=0 : DWORD
Additional data associated with keystroke
For more info, check out the function at msdn.microsoft.com
Mark.
More information about the Python-list
mailing list